/* Trust Answer Pack — Phase-1 */
:root {
  --bg: #f7f6f3;
  --surface: #ffffff;
  --ink: #1a1a1a;
  --muted: #5c5c5c;
  --border: #e2e0da;
  --accent: #2c4a3e;
  --accent-soft: #e8efe9;
  --warn: #8a5a00;
  --warn-bg: #faf3e6;
  --meta: #3a4a6b;
  --meta-bg: #eef1f7;
  --must: #5a3a2a;
  --must-bg: #f5ebe6;
  --radius: 10px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --max: 720px;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

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

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

a:hover {
  text-decoration-thickness: 2px;
}

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

.site-header .inner,
.site-footer .inner,
main.wrap {
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-left: 0;
  padding-right: 0;
}

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

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

.nav {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
}

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

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

main.wrap {
  flex: 1;
  padding-top: 2rem;
  padding-bottom: 3rem;
}

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

.site-footer .inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  padding-left: 0;
  padding-right: 0;
}

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

h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  margin: 1rem 0;
}

.card + .card {
  margin-top: 1rem;
}

.pricing-grid {
  display: grid;
  gap: 0.75rem;
  margin: 1.25rem 0;
}

@media (min-width: 560px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}

.price-card .sku {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.price-card .name {
  font-weight: 600;
  margin: 0.25rem 0;
}

.price-card .amount {
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.price-card .unit {
  font-size: 0.85rem;
  color: var(--muted);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 1.15rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 560;
  font-family: inherit;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
}

.btn:hover {
  text-decoration: none;
}

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

.btn-primary:hover {
  filter: brightness(1.08);
  color: #fff;
}

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

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

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

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

.note strong {
  color: var(--ink);
  font-weight: 560;
}

label.field-label {
  display: block;
  font-weight: 560;
  margin-bottom: 0.4rem;
}

textarea.q-input {
  width: 100%;
  min-height: 180px;
  resize: vertical;
  font-family: var(--mono);
  font-size: 0.875rem;
  line-height: 1.45;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
}

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

.meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0.5rem 0 1rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.meta-bar .count.warn {
  color: var(--warn);
  font-weight: 560;
}

.meta-bar .count.ok {
  color: var(--accent);
}

.error-banner {
  background: var(--warn-bg);
  color: var(--warn);
  border: 1px solid #e8d4a8;
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin: 0.75rem 0;
  font-size: 0.9rem;
  display: none;
}

.error-banner.show {
  display: block;
}

.results {
  margin-top: 1.5rem;
}

.results[hidden] {
  display: none;
}

.result-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  margin-bottom: 0.65rem;
  background: var(--surface);
}

.result-item .badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  margin-bottom: 0.4rem;
}

.badge-must_confirm {
  background: var(--must-bg);
  color: var(--must);
}

.badge-meta {
  background: var(--meta-bg);
  color: var(--meta);
}

.badge-ambiguous {
  background: var(--warn-bg);
  color: var(--warn);
}

.result-item .q-text {
  font-size: 0.95rem;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.result-item .hint {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0.4rem 0 0;
}

.summary-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0 1.25rem;
}

.chip {
  font-size: 0.8rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 560;
}

.list-plain {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.list-plain li {
  margin-bottom: 0.35rem;
}

.list-plain li strong {
  color: var(--ink);
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

.thanks-box {
  text-align: left;
}

.session-id {
  font-family: var(--mono);
  font-size: 0.8rem;
  word-break: break-all;
  color: var(--muted);
  background: var(--bg);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  margin-top: 0.5rem;
}

.privacy-body h2 {
  margin-top: 1.75rem;
}

.privacy-body ul {
  color: var(--muted);
  padding-left: 1.2rem;
}

.privacy-body li {
  margin-bottom: 0.4rem;
}
