/* Humanizer — matches tryzap.net's Playground (/test) page */
@font-face {
  font-family: Outfit;
  src: url('/fonts/outfit-variable.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --hz-blue: #2875ef;
  --hz-line: #dfe8f3;
  --hz-muted: #65758b;
  --hz-soft: #f3f7fd;
  --hz-ink: #1b2a44;
  --hz-good: #148a55;
  --hz-warn: #b26a00;
  --hz-bad: #c8304f;
  font-family: Outfit, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--hz-ink);
  background: #f7faff;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; -webkit-font-smoothing: antialiased; background: linear-gradient(180deg, #f7faff, #fbfdff 60%); min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
textarea { font: inherit; }

.hz-skip { position: absolute; left: -9999px; }
.hz-skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 10; }

.hz-shell { max-width: 1180px; margin: 0 auto; padding: 0 36px; }

/* nav */
.hz-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 19px 0; border-bottom: 1px solid var(--hz-line); }
.hz-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 620; letter-spacing: -.6px; }
.hz-brand img { width: 32px; height: 32px; border-radius: 4px; }
.hz-nav-links { display: flex; align-items: center; gap: 24px; font-size: 13px; }
.hz-product-link { color: #4d5f78; }
.hz-product-link:hover { color: var(--hz-blue); }
.hz-account-link { color: #2b68bc; font-weight: 500; }
.hz-account-link:hover { color: var(--hz-blue); }
.hz-download { display: inline-flex; align-items: center; justify-content: center; min-height: 39px; padding: 0 17px; border-radius: 10px; background: var(--hz-blue); color: #fff; font-weight: 500; box-shadow: 0 3px 8px #2875ef17; }
.hz-download:hover { filter: brightness(1.06); }

/* intro */
.hz-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 50px 0 36px; }
.hz-eyebrow { color: #4f72a0; letter-spacing: .15em; font-size: 10px; font-weight: 600; margin-bottom: 15px; }
.hz-intro h1 { margin: 0; font-size: clamp(38px, 4.5vw, 61px); font-weight: 570; line-height: 1.04; letter-spacing: -.055em; max-width: 660px; }
.hz-intro p { margin: 16px 0 0; color: var(--hz-muted); font-size: 14px; line-height: 1.7; max-width: 640px; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--hz-muted); background: #edf3fa; border: 1px solid #e1e9f3; border-radius: 10px; padding: 8px 13px; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #a9b7c9; }
.chip.ok::before { background: #2fbf71; }
.chip.warn { color: var(--hz-warn); }
.chip.warn::before { background: #e3a13a; }

/* board */
.hz-board { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: #fff; border: 1px solid var(--hz-line); border-radius: 23px; box-shadow: 0 20px 65px #2856810a, 0 3px 12px #35639104; overflow: hidden; }
.hz-pane { padding: 26px 30px 24px; display: flex; flex-direction: column; min-width: 0; }
.hz-pane-out { background: linear-gradient(165deg, #f8fbff, #f2f6fc); border-left: 1px solid var(--hz-line); }
.hz-pane-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.hz-label { font-size: 9px; font-weight: 650; letter-spacing: .15em; color: #607897; }
.hz-meta { font-size: 11px; color: #8491a4; }

textarea, .empty {
  width: 100%; min-height: 360px; border: 1px solid var(--hz-line); border-radius: 14px;
  background: #fff; color: var(--hz-ink); padding: 16px 18px; font-size: 14.5px; line-height: 1.7; resize: vertical;
}
textarea::placeholder { color: #9aa7b8; }
textarea:focus { outline: none; border-color: #9cc0f6; box-shadow: 0 0 0 4px #2875ef14; }
.empty { display: flex; align-items: center; justify-content: center; text-align: center; color: #8491a4; font-size: 13px; background: #ffffffb3; border-style: dashed; }

.hz-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.hz-primary, .hz-secondary { min-height: 40px; display: inline-flex; justify-content: center; align-items: center; gap: 8px; border-radius: 9px; padding: 0 17px; font-size: 12px; font-weight: 500; transition: filter .15s, border-color .15s, color .15s; }
.hz-primary { border: 1px solid var(--hz-blue); background: var(--hz-blue); color: #fff; box-shadow: 0 3px 8px #2875ef17; }
.hz-primary:hover:enabled { filter: brightness(1.06); }
.hz-secondary { border: 1px solid var(--hz-line); background: #fff; color: #3f5776; }
.hz-secondary:hover:enabled { border-color: #bcd3f2; color: var(--hz-blue); }
.hz-text-btn { border: 0; background: none; color: #6a7e98; font-size: 12px; padding: 0 6px; min-height: 40px; }
.hz-text-btn:hover { color: var(--hz-blue); }
button:disabled { opacity: .5; cursor: not-allowed; }
.hz-primary.busy { animation: hz-pulse 1.3s ease-in-out infinite; }
@keyframes hz-pulse { 50% { filter: brightness(1.18); } }

.hz-board-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px; padding: 18px 30px; border-top: 1px solid var(--hz-line); font-size: 11px; color: #6a7e98; }
kbd { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; color: #4d5f78; background: var(--hz-soft); border: 1px solid var(--hz-line); border-radius: 5px; padding: 1px 5px; }

/* paywall */
.hz-paywall { border: 1px solid #dce8f8; border-radius: 14px; background: #fff; padding: 22px 22px 20px; margin-bottom: 14px; box-shadow: 0 3px 8px #34578108; }
.hz-paywall[hidden] { display: none; }
.hz-paywall .hz-eyebrow { margin-bottom: 10px; }
.hz-paywall h2 { margin: 0; font-size: 22px; font-weight: 570; letter-spacing: -.03em; line-height: 1.2; }
.hz-paywall p { margin: 8px 0 0; font-size: 13px; line-height: 1.6; color: var(--hz-muted); }
.hz-paywall .hz-actions { margin-top: 16px; }

/* results */
.err { color: var(--hz-bad); font-size: 12px; min-height: 16px; margin-top: 10px; }
.status { color: #6a7e98; }
.note { font-size: 11px; color: #6a7e98; margin-top: 8px; }
.badge { display: none; width: fit-content; max-width: 100%; margin-top: 14px; font-size: 12px; font-weight: 500; padding: 7px 12px; border-radius: 9px; border: 1px solid transparent; }
.badge.pass { display: block; color: var(--hz-good); background: #e9f8f0; border-color: #c9ecd9; }
.badge.warn { display: block; color: var(--hz-warn); background: #fff6e7; border-color: #f4dfb7; }
.badge.fail { display: block; color: var(--hz-bad); background: #fdeef1; border-color: #f6d0d8; }
.badge.nover { display: block; color: var(--hz-muted); background: var(--hz-soft); border-color: var(--hz-line); }
.flagged { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.flagged li { font-size: 12px; line-height: 1.55; color: #3f5776; background: #fff; border: 1px solid var(--hz-line); border-radius: 10px; padding: 9px 12px; }
.flagged .ai { color: var(--hz-warn); font-weight: 600; margin-right: 6px; }

.hz-notes { display: flex; justify-content: space-between; gap: 24px; margin-top: 14px; padding: 0 2px; font-size: 10.5px; color: #6a7e98; }
.hz-notes p { margin: 0; }
.hz-notes a { color: var(--hz-blue); text-decoration: underline; text-underline-offset: 2px; }

.hz-footer { display: flex; justify-content: space-between; gap: 24px; margin-top: 52px; padding: 22px 0 25px; border-top: 1px solid var(--hz-line); font-size: 10px; color: #8491a4; }
.hz-footer div { display: flex; gap: 16px; }
.hz-footer a:hover { color: var(--hz-blue); }

@media (max-width: 860px) {
  .hz-shell { padding: 0 16px; }
  .hz-intro { flex-direction: column; align-items: flex-start; padding: 36px 0 26px; }
  .hz-board { grid-template-columns: 1fr; }
  .hz-pane { padding: 20px 18px; }
  .hz-pane-out { border-left: 0; border-top: 1px solid var(--hz-line); }
  textarea, .empty { min-height: 240px; }
  .hz-board-foot, .hz-notes { flex-direction: column; gap: 6px; padding-left: 18px; padding-right: 18px; }
  .hz-notes { padding: 0 2px; }
  .hz-nav-links { gap: 14px; }
  .hz-product-link { display: none; }
}
