/* Shared styles for the CritiqueQuest landing and demo pages */
:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --text: #2b2a26;
  --muted: #6b675e;
  --accent: #2f6f5e;
  --accent-contrast: #ffffff;
  --border: #e4e0d6;
  --code-bg: #2b2a26;
  --code-text: #e8e4da;
  --danger: #a4442f;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1d1c19;
    --surface: #262521;
    --text: #ece8de;
    --muted: #a39e91;
    --accent: #6fbba4;
    --accent-contrast: #14231e;
    --border: #3a382f;
    --code-bg: #14130f;
    --code-text: #d9d5ca;
    --danger: #e0785f;
  }
}
* { box-sizing: border-box; margin: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.6;
}
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 600; line-height: 1.2; }
a { color: var(--accent); }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 1.25rem; }
header.site {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0; border-bottom: 1px solid var(--border);
}
header.site .brand { font-family: Georgia, serif; font-size: 1.2rem; font-weight: 700; text-decoration: none; color: var(--text); }
header.site nav a { margin-left: 1.1rem; text-decoration: none; color: var(--muted); font-size: .95rem; }
header.site nav a:hover { color: var(--accent); }
.hero { text-align: center; padding: 4rem 0 3rem; }
.hero.compact { padding: 2.5rem 0 1.5rem; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); margin-bottom: .6rem; }
.hero .tag { font-style: italic; color: var(--muted); font-size: 1.15rem; margin-bottom: 1.1rem; }
.hero p.lede { max-width: 620px; margin: 0 auto 1.8rem; color: var(--muted); }
.btn {
  display: inline-block; padding: .65rem 1.3rem; border-radius: 8px; text-decoration: none;
  font-weight: 600; font-size: .95rem; border: 1px solid var(--accent); cursor: pointer;
}
.btn.primary { background: var(--accent); color: var(--accent-contrast); }
.btn.ghost { background: transparent; color: var(--accent); }
.btn + .btn { margin-left: .6rem; }
section { padding: 2.75rem 0; border-top: 1px solid var(--border); }
section h2 { font-size: 1.7rem; margin-bottom: .4rem; }
section p.sub { color: var(--muted); margin-bottom: 1.5rem; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; padding: 2rem 0 0; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 1.1rem 1.2rem; }
.feature h3 { font-size: 1.02rem; margin-bottom: .3rem; }
.feature p { font-size: .9rem; color: var(--muted); }
form.demo { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; }
label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: .25rem; color: var(--muted); }
input, select, textarea {
  width: 100%; padding: .55rem .7rem; border: 1px solid var(--border); border-radius: 7px;
  background: var(--bg); color: var(--text); font: inherit; font-size: .92rem;
}
textarea { resize: vertical; min-height: 70px; }
.row { margin-top: 1rem; }
.hint { font-size: .8rem; color: var(--muted); margin-top: .3rem; }
#generate { margin-top: 1.25rem; }
#generate[disabled] { opacity: .55; cursor: wait; }
#error { color: var(--danger); margin-top: 1rem; font-size: .92rem; white-space: pre-wrap; display: none; }
#output {
  display: none; margin-top: 1.5rem; background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.6rem; overflow-x: auto;
}
#output h3 { margin: 1.1rem 0 .5rem; }
#output h3:first-child { margin-top: 0; }
#output p, #output li { font-size: .95rem; }
#output ul, #output ol { padding-left: 1.4rem; margin: .5rem 0; }
pre.code {
  background: var(--code-bg); color: var(--code-text); border-radius: 10px;
  padding: 1rem 1.2rem; overflow-x: auto; font-size: .85rem; line-height: 1.55;
}
.privacy { font-size: .85rem; color: var(--muted); margin-top: 1rem; }
.dl-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.dl-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 1.1rem 1.2rem; }
.dl-card.mine { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.dl-card h3 { font-size: 1.02rem; margin-bottom: .6rem; }
.dl-card .btn { display: block; text-align: center; margin: 0 0 .5rem; }
.dl-card .btn + .btn { margin-left: 0; }
.dl-card .alt { font-size: .82rem; color: var(--muted); }
.dl-card .mine-tag { font-size: .75rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .05em; }
footer { border-top: 1px solid var(--border); padding: 2rem 0 3rem; color: var(--muted); font-size: .88rem; text-align: center; }
footer a { color: var(--muted); }
