/* Seller Ops Brief — clean, readable, mobile-friendly */

:root {
  --bg: #f7f6f3;
  --surface: #ffffff;
  --ink: #1a1a1a;
  --muted: #5a5a5a;
  --border: #ddd9d0;
  --accent: #1e4d3a;
  --accent-hover: #163a2c;
  --warn: #8a5a00;
  --fail: #a32020;
  --pass: #0a6b4a;
  --radius: 6px;
  --max: 40rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
}

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

html {
  font-size: 17px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--accent-hover);
}

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

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 0.85rem 0;
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.brand {
  font-weight: 650;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand:hover {
  color: var(--accent);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
  font-size: 0.92rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--accent);
  text-decoration: underline;
}

/* Main */
main {
  flex: 1;
  padding: 2rem 0 3rem;
}

h1 {
  font-size: 1.65rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  font-weight: 700;
}

h2 {
  font-size: 1.2rem;
  margin: 2rem 0 0.6rem;
  font-weight: 650;
}

h3 {
  font-size: 1.05rem;
  margin: 1.4rem 0 0.45rem;
  font-weight: 600;
}

p {
  margin: 0 0 1rem;
  color: var(--ink);
}

.lede {
  font-size: 1.05rem;
  color: var(--muted);
}

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

.note {
  color: var(--muted);
  font-size: 0.9rem;
}

ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.35rem;
}

/* Cards / panels */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  margin: 1.25rem 0;
}

.card h2 {
  margin-top: 0;
}

.teaser-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

/* CTA */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.25rem 0 0.5rem;
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.3;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-secondary {
  background: var(--surface);
  color: var(--accent);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent-hover);
}

/* Forms / checker */
label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

textarea {
  width: 100%;
  min-height: 11rem;
  padding: 0.75rem;
  font-family: var(--font);
  font-size: 0.95rem;
  line-height: 1.45;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  resize: vertical;
}

textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

code,
.mono {
  font-family: var(--mono);
  font-size: 0.9em;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}

.steps li {
  position: relative;
  padding-left: 2.2rem;
  margin-bottom: 1rem;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Checker results */
#out {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 0.85rem;
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 3rem;
}

.pass { color: var(--pass); font-weight: 700; }
.warn { color: var(--warn); font-weight: 700; }
.fail { color: var(--fail); font-weight: 700; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 1.25rem 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.site-footer p {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: inherit;
}

.site-footer a {
  color: var(--muted);
}

@media (max-width: 520px) {
  html { font-size: 16px; }
  h1 { font-size: 1.4rem; }
  .site-header .wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* KDP helper decision tree */
.banner-soft {
  background: #fff8e8;
  border-color: #e6d89c;
  font-size: 0.9rem;
  color: var(--muted);
}
.step-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.35rem;
}
.tree-q {
  font-size: 1.05rem;
  font-weight: 650;
  margin: 0 0 0.85rem;
}
.choice-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.choice-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  line-height: 1.35;
}
.choice-btn:hover,
.choice-btn:focus-visible {
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 650;
  color: #fff;
  margin-bottom: 0.35rem;
}
.badge-generated { background: var(--fail); }
.badge-assisted { background: var(--warn); }
.badge-none { background: var(--pass); }
.badge-unclear { background: #555; }
.rationale {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0.25rem 0 1rem;
}
.result-h {
  margin: 0.75rem 0 0.35rem;
  font-size: 1.05rem;
}
.summary-block {
  margin: 0.75rem 0;
  padding: 0.85rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 0.8rem;
  white-space: pre-wrap;
  word-break: break-word;
}
