/* Retail Therapy Delay Decision */
:root {
  --bg: #fbf7f2;
  --surface: #ffffff;
  --surface-2: #f4ede3;
  --ink: #2c2419;
  --muted: #6f6453;
  --line: #e6dbcc;
  --accent: #b5530f;
  --accent-ink: #ffffff;
  --wait: #8a4b16;
  --wait-bg: #f6ece1;
  --consider: #3d5a3d;
  --consider-bg: #e8f0e6;
  --ok: #2f6f4f;
  --ok-bg: #e3f1e8;
  --shadow: 0 1px 0 rgba(44, 36, 25, 0.04), 0 10px 30px rgba(44, 36, 25, 0.06);
  --radius: 14px;
  --radius-sm: 10px;
  --max: 1080px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--accent);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-title { font-weight: 700; font-size: 16px; }
.brand-sub { font-size: 12px; color: var(--muted); }

.site-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-nav a { color: var(--ink); font-size: 14px; }
.site-nav a:hover { color: var(--accent); }

/* Checker */
.checker { padding: 36px 0 24px; }
.checker-intro { max-width: 720px; margin-bottom: 24px; }
.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--surface-2);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
h1 {
  font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.15;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.lede { color: var(--muted); font-size: 16px; margin: 0; }

.layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 880px) {
  .layout { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

/* Form */
.form-title, .result-title { margin: 0 0 14px; font-size: 18px; }
.field { margin-bottom: 14px; display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink); }
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(181, 83, 15, 0.15);
}
.field textarea { resize: vertical; }

.preset-row { display: flex; flex-wrap: wrap; gap: 8px; }
.preset {
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
}
.preset:hover { border-color: var(--accent); color: var(--accent); }

.form-actions { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  background: var(--surface-2);
  color: var(--ink);
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(0.97); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-small { padding: 7px 11px; font-size: 13px; }

/* Result */
.result-empty {
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 18px;
  color: var(--muted);
}
.result-empty p { margin: 0 0 6px; }

.verdict {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--wait-bg);
  color: var(--wait);
  border: 1px solid #e6d3b8;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.verdict.consider { background: var(--consider-bg); color: var(--consider); border-color: #c8d9c5; }
.verdict.ok { background: var(--ok-bg); color: var(--ok); border-color: #bfded0; }
.verdict-tag { font-weight: 800; letter-spacing: 0.02em; }
.verdict-time { font-size: 14px; }

.result-sub { font-size: 14px; margin: 14px 0 6px; color: var(--ink); }
.result-body p { margin: 0; color: var(--ink); }

.q-list { margin: 0; padding-left: 18px; }
.q-list li { margin: 4px 0; }

.result-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.result-actions .btn { background: var(--surface-2); }

.muted { color: var(--muted); }
.tiny { font-size: 12px; }

/* Scenarios */
.scenarios { padding: 24px 0; }
h2 { font-size: 22px; margin: 0 0 8px; }
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 14px;
}
@media (max-width: 880px) { .scenario-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .scenario-grid { grid-template-columns: 1fr; } }
.scenario {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}
.scenario h3 { margin: 0 0 8px; font-size: 16px; color: var(--accent); }
.scenario p { margin: 0 0 6px; font-size: 14px; color: var(--ink); }

/* Notes */
.notes { padding: 24px 0 40px; }
.notes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 14px;
}
@media (max-width: 720px) { .notes-grid { grid-template-columns: 1fr; } }
.note {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}
.note h3 { margin: 0 0 6px; font-size: 16px; }
.note p { margin: 0; font-size: 14px; color: var(--ink); }

.history { margin-top: 18px; }
.history h3 { margin: 0 0 10px; font-size: 16px; }
.history-list { margin: 0; padding-left: 18px; max-height: 220px; overflow: auto; }
.history-list li { font-size: 14px; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.history-list li:last-child { border-bottom: none; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 18px 0;
  margin-top: 20px;
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-text { color: var(--muted); font-size: 13px; margin: 0; }
.dot { margin: 0 6px; }
.footer-nav { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-nav a { color: var(--muted); font-size: 13px; }
.footer-nav a:hover { color: var(--accent); }

@media print {
  .site-header, .site-footer, .form, .scenarios, .notes, .result-actions { display: none; }
  .card { box-shadow: none; border: none; }
}



/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
