/* BizzBuzzTools - Total Trust Consulting brand (lighthouse logo palette):
   navy ink, lighthouse red actions, wave blue/yellow/green accents. */
:root {
  --ink: #1f2430;
  --ink-soft: #475064;
  --ink-faint: #667081;     /* AA on white (5.0:1) - #7c8698 failed at 3.67 */
  --paper: #f6f8fb;
  --card: #ffffff;
  --line: #e2e7ef;
  --accent: #d9302a;        /* lighthouse red, darkened for AA white-on-red (4.77:1) */
  --accent-deep: #b8241d;
  --blue: #2f62d8;          /* wave blue - links, info */
  --blue-soft: #e8eefb;
  --yellow: #ffd029;        /* lamp yellow - highlights */
  --yellow-soft: #fff6d6;
  --good: #178247;          /* wave green, darkened for AA as text (4.86:1) */
  --warn: #c77f00;          /* borders & graphics only - fails AA as small text */
  --bad: #d9302a;           /* same red as accent: one red family everywhere */
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 880px; margin: 0 auto; padding: 24px 20px 80px; }

h1, h2, h3 {
  font-family: Poppins, Montserrat, "Segoe UI", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand {
  display: flex; align-items: center; gap: 11px;
  padding: 18px 0 8px; color: var(--ink);
}
.brand .mark {
  width: 46px; height: 54px; flex: none;   /* big enough that all three wave colors read */
}
.brand .name {
  font-family: Poppins, Montserrat, "Segoe UI", sans-serif;
  font-size: 21px; font-weight: 800; letter-spacing: -0.02em;
}
.brand .by { margin-left: auto; font-size: 12.5px; color: var(--ink-faint); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin: 18px 0;
  box-shadow: 0 1px 3px rgba(28, 39, 51, 0.05);
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 13px 26px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  /* Anchors styled as buttons must not carry link underlines. */
  text-decoration: none;
  white-space: nowrap;
  text-align: center;
  transition: background 0.15s;
}
.btn:hover, .btn:visited, .btn:active, .btn:focus { text-decoration: none; }
a.btn:visited { color: #fff; }
a.btn.ghost, a.btn.ghost:visited { color: var(--ink-soft); }
.btn:hover { background: var(--accent-deep); }
.btn.ghost {
  background: transparent; color: var(--ink-soft);
  border: 1px solid var(--line);
}
.btn.ghost:hover { background: #eef2f8; color: var(--ink); }
.btn:disabled { opacity: 0.5; cursor: default; }

label.field { display: block; margin: 16px 0 0; font-weight: 600; font-size: 14.5px; }
label.field .hint { font-weight: 400; color: var(--ink-faint); font-size: 13px; }
input[type=text], input[type=email], input[type=url], select, textarea {
  width: 100%;
  margin-top: 6px;
  padding: 11px 13px;
  font-size: 15px;
  font-family: inherit;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }

.opt {
  display: block;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 13px 15px;
  margin-top: 9px;
  cursor: pointer;
  font-size: 15px;
  background: #fff;
  transition: border-color 0.12s, background 0.12s;
}
.opt:hover { border-color: var(--blue); }
.opt.on { border-color: var(--blue); background: var(--blue-soft); box-shadow: 0 0 0 1px var(--blue); }
/* Hidden to the eye but NOT to the keyboard - display:none would drop every
   answer out of the tab order and make the wizard unusable without a mouse. */
.opt input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}
.opt:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47, 98, 216, 0.3); }

.progressbar {
  height: 7px; border-radius: 4px; background: var(--line);
  overflow: hidden; margin: 6px 0 4px;
}
.progressbar > div { height: 100%; background: var(--accent); border-radius: 4px; transition: width 0.3s; }

.muted { color: var(--ink-soft); }
.faint { color: var(--ink-faint); font-size: 13.5px; }
.small { font-size: 13.5px; }

/* Report */
.scorering { width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.scorering .inner {
  width: 118px; height: 118px; border-radius: 50%; background: var(--card);
  display: grid; place-items: center; text-align: center;
}
.scorering .num { font-size: 40px; font-weight: 800; font-family: Poppins, "Segoe UI", sans-serif; line-height: 1; }
.scorering .of { font-size: 12px; color: var(--ink-faint); }

.areabar { margin: 14px 0; }
.areabar .row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.areabar .row b { font-size: 15.5px; }
.areabar .plain { color: var(--ink-faint); font-size: 13px; }
.areabar .track { height: 9px; background: var(--line); border-radius: 5px; margin-top: 5px; overflow: hidden; }
.areabar .fill { height: 100%; border-radius: 5px; }

.finding { display: flex; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); }
.finding:first-child { border-top: none; }
.finding .dot { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; color: #fff; margin-top: 2px; }
.finding .dot.pass { background: var(--good); }
.finding .dot.warn { background: var(--warn); }
.finding .dot.fail { background: var(--bad); }
.finding .dot.info { background: var(--ink-faint); }
.finding b { font-size: 15px; }
.finding .saw { margin-top: 1px; }
.finding .why { color: var(--ink-soft); font-size: 13.5px; margin-top: 4px; }

.planitem { display: flex; gap: 13px; padding: 14px 0; border-top: 1px solid var(--line); }
.planitem:first-child { border-top: none; }
.planitem .box { flex: none; width: 20px; height: 20px; border: 2px solid var(--accent); border-radius: 6px; margin-top: 3px; }
.planitem .because { color: var(--ink-faint); font-size: 13px; margin-top: 4px; font-style: italic; }

.pill { display: inline-block; padding: 3px 11px; border-radius: 99px; font-size: 12.5px; font-weight: 600; background: var(--blue-soft); color: var(--blue); }

.leak { border-left: 4px solid var(--bad); padding: 10px 16px; margin: 12px 0; background: #fdf3f1; border-radius: 0 10px 10px 0; }
.leak b { font-size: 15px; }
.leak .fix { color: var(--good); font-weight: 600; font-size: 13.5px; margin-top: 4px; }

.timeline { list-style: none; }
.timeline li { padding: 7px 0 7px 26px; position: relative; font-size: 14.5px; color: var(--ink-soft); }
.timeline li::before { content: "✓"; position: absolute; left: 0; color: var(--good); font-weight: 700; }
.timeline li.miss::before { content: "✗"; color: var(--bad); }
/* Plain narration - a step we took, neither a win nor a problem. */
.timeline li.neutral::before { content: "•"; color: var(--ink-faint); }
.timeline li.neutral { color: var(--ink-faint); }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
th { color: var(--ink-faint); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.06em; }
tr:hover td { background: #f6f8fb; }

@media (max-width: 640px) {
  .card { padding: 20px 16px; }
  .hero-flex { flex-direction: column; }
  /* iOS Safari auto-zooms when a focused field is under 16px, and never
     zooms back out — so the whole wizard ends up oversized after one tap. */
  input[type=text], input[type=email], input[type=url], select, textarea { font-size: 16px; }
}

@media print {
  body { background: #fff; }
  .no-print { display: none !important; }
  .card { box-shadow: none; break-inside: avoid; margin: 12px 0; }
  .wrap { padding: 0; max-width: none; }
}
