/* Tecknoworks Production Readiness tool — brand per brand/SKILL.md.
   Mobile-first. Self-hosted Nunito variable font (latin), fallback Arial.
   Tier colors are functional additions used only for the tier system. */

@font-face {
  font-family: "Nunito";
  src: url("/static/fonts/nunito-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --tw-dark-gray: #515455;
  --tw-deep-purple: #320063;
  --tw-plum: #7D1C4B;
  --tw-magenta: #EA2775;
  --tw-coral: #EA8170;
  --tier-green: #2E7D32;
  --tier-yellow: #C58F00;
  --tier-orange: #E65100;
  --tier-red: #C62828;
  --bg: #FFFFFF;
  --bg-soft: #F7F4FB;
  --line: #E4DEEE;
  --radius: 12px;
  --font: "Nunito", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--tw-dark-gray);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
}

/* Sticky footer: body fills the viewport, main grows, footer pins to the bottom
   even when the content is short. dvh keeps it correct under mobile browser chrome. */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}
#app { flex: 1 0 auto; }

.wrap { max-width: 680px; margin: 0 auto; padding: 24px 20px 48px; }
.narrow { max-width: 620px; }
.hidden { display: none !important; }

h1, h2, h3 { color: var(--tw-deep-purple); line-height: 1.2; font-weight: 700; }
h1 { font-size: 2rem; margin: 18px 0 10px; }
h2 { font-size: 1.4rem; margin: 16px 0 12px; }
h3 { font-size: 1.15rem; margin: 26px 0 10px; }

.wordmark { width: 190px; max-width: 60%; height: auto; display: block; margin: 26px 0 4px; }
.descriptor {
  color: var(--tw-plum);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 22px;
  font-weight: 700;
}
.subhead { font-size: 1.05rem; margin: 0 0 14px; }
.bodyline { font-size: 0.95rem; margin: 0 0 26px; }
.smallnote { font-size: 0.85rem; color: #7a7d7e; margin-top: 12px; }

.btn {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius);
  padding: 14px 26px;
  min-height: 48px;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn.primary { background: var(--tw-magenta); color: #fff; }
.btn.primary:hover { background: #cf1f65; }
.btn.primary:disabled { background: #d9a8bd; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--tw-deep-purple); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--tw-deep-purple); }
a.btn { display: inline-block; text-decoration: none; text-align: center; }

/* Report-ready (download) panel */
.report-ready { margin-top: 30px; }
.report-ready h3 { margin: 0 0 8px; }
.report-ready p { margin: 0 0 18px; }

/* Assessment */
.progress { color: var(--tw-plum); font-weight: 700; font-size: 0.9rem; margin: 20px 0 6px; }
.progressbar { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; margin-bottom: 18px; }
.progressbar div { height: 100%; width: 0; background: linear-gradient(90deg, var(--tw-magenta), var(--tw-coral)); }

.options { display: flex; flex-direction: column; gap: 10px; margin: 18px 0 22px; }
.option {
  display: block;
  width: 100%;
  text-align: left;
  font-family: var(--font);
  font-size: 0.97rem;
  line-height: 1.45;
  color: var(--tw-dark-gray);
  background: var(--bg-soft);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  min-height: 48px;
  cursor: pointer;
}
.option:hover { border-color: var(--tw-coral); }
.option[aria-checked="true"] {
  border-color: var(--tw-magenta);
  background: #fdeef4;
  color: #3a3c3d;
  font-weight: 700;
}
.navrow { display: flex; justify-content: space-between; gap: 12px; }

/* Results */
.scoreline { font-size: 3rem; font-weight: 700; color: var(--tw-deep-purple); margin: 8px 0 2px; }
.scoreof { font-size: 1.4rem; color: var(--tw-plum); font-weight: 400; }
.tierbadge { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 1.15rem; color: var(--tw-deep-purple); margin: 4px 0 6px; }
.tierdot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
.tier-green .tierdot, .tierdot.tier-green { background: var(--tier-green); }
.tier-yellow .tierdot, .tierdot.tier-yellow { background: var(--tier-yellow); }
.tier-orange .tierdot, .tierdot.tier-orange { background: var(--tier-orange); }
.tier-red .tierdot, .tierdot.tier-red { background: var(--tier-red); }
.tiermeaning { margin: 0 0 8px; }

.breakdown { display: flex; flex-direction: column; gap: 12px; }
.dimrow .dimtop { display: flex; justify-content: space-between; gap: 10px; font-size: 0.92rem; }
.dimrow .dimname { font-weight: 700; color: var(--tw-deep-purple); }
.dimrow .dimmeta { color: #7a7d7e; white-space: nowrap; }
.dimbar { height: 10px; background: var(--line); border-radius: 5px; overflow: hidden; margin-top: 4px; }
.dimbar div { height: 100%; background: linear-gradient(90deg, var(--tw-magenta), var(--tw-coral)); border-radius: 5px; }

.gaps { padding-left: 22px; margin: 6px 0 10px; }
.gaps li { margin: 4px 0; }
.gaps .gapscore { color: #7a7d7e; font-size: 0.9rem; }

/* Gate */
.gate { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-top: 30px; }
.gate form { display: flex; flex-direction: column; }
.gate label { font-weight: 700; font-size: 0.9rem; color: var(--tw-deep-purple); margin: 12px 0 4px; }
.gate input[type="email"], .gate input[type="text"] {
  font-family: var(--font);
  font-size: 1rem;
  padding: 12px;
  min-height: 48px;
  border: 2px solid var(--line);
  border-radius: 8px;
  width: 100%;
}
.gate input:focus { outline: none; border-color: var(--tw-magenta); }
.consentrow { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0; }
.consentrow input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.consentrow label { margin: 0; font-weight: 400; color: var(--tw-dark-gray); font-size: 0.95rem; }
.gate .btn { margin-top: 4px; }
.gate a { color: var(--tw-magenta); }
.formmsg { font-weight: 700; margin-top: 12px; }
.formmsg.error { color: var(--tier-red); }
.formmsg.okmsg { color: var(--tier-green); }

/* Honeypot: visually removed, still in DOM for bots */
.hp-field { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }

/* Report */
.report { margin-top: 34px; }
.report table { border-collapse: collapse; width: 100%; font-size: 0.92rem; margin: 10px 0 18px; }
.report th, .report td { border: 1px solid var(--line); padding: 7px 10px; text-align: left; }
.report th { background: #f3eef9; color: var(--tw-deep-purple); }
.report .dimblock { border-left: 4px solid var(--tw-magenta); padding: 2px 0 2px 14px; margin: 16px 0; }
.report .dimblock h4 { color: var(--tw-deep-purple); margin: 0 0 6px; font-size: 1.02rem; }
.report .dimblock p { margin: 0; font-size: 0.97rem; }
.report .closing { background: var(--bg-soft); border-radius: var(--radius); padding: 16px; margin-top: 22px; }

/* Footer */
.sitefooter { background: var(--tw-deep-purple); color: #fff; flex-shrink: 0; }
.sitefooter p { max-width: 680px; margin: 0 auto; padding: 18px 20px; font-size: 0.85rem; }

@media (min-width: 700px) {
  h1 { font-size: 2.5rem; }
  .dimrow { display: grid; grid-template-columns: 220px 1fr auto; gap: 12px; align-items: center; }
  .dimrow .dimtop { display: contents; }
  /* Explicit placement: DOM order is name+meta (stacked mobile top line) then bar, so
     auto-placement would put the meta in the 1fr column and collapse the bar to 0px. */
  .dimrow .dimname { grid-column: 1; grid-row: 1; }
  .dimrow .dimbar { grid-column: 2; grid-row: 1; margin-top: 0; }
  .dimrow .dimmeta { grid-column: 3; grid-row: 1; }
}
