/* Westem CRM — self-serve demo pages. Reuses the landing's design tokens
   from main.css (cream canvas, terracotta accent, Bricolage/Inter). */

.demo-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7.5rem 1.25rem 3.5rem;
  background:
    radial-gradient(44rem 28rem at 110% -10%, rgba(217, 83, 43, 0.07), transparent 62%),
    radial-gradient(38rem 26rem at -15% 20%, rgba(39, 69, 60, 0.07), transparent 58%),
    var(--bg);
}

.demo-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(1.6rem, 4vw, 2.8rem);
  width: 100%;
  max-width: 35rem;
}

.demo-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.7rem;
}

.demo-h1 {
  font-family: var(--head);
  font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin-bottom: 0.7rem;
}

.demo-sub {
  color: var(--soft);
  font-size: 1rem;
  margin-bottom: 1.6rem;
}

/* --- form --- */

.demo-field { margin-bottom: 1.05rem; }

.demo-field label {
  display: block;
  font-family: var(--head);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
}

.demo-field .req { color: var(--accent); }

.demo-input {
  width: 100%;
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: 0.7rem 0.9rem;
  transition: border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.demo-input:focus {
  outline: none;
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(217, 83, 43, 0.14);
}

.demo-input.is-invalid { border-color: #c0392b; background: #fdf3f1; }

.demo-err { display: block; margin-top: 0.35rem; font-size: 0.82rem; color: #c0392b; }

.demo-submit { width: 100%; margin-top: 0.6rem; }

.demo-alert {
  background: #fdf3f1;
  border: 1px solid rgba(192, 57, 43, 0.3);
  color: #a3331f;
  border-radius: var(--r-md);
  padding: 0.8rem 1rem;
  font-size: 0.92rem;
  margin-bottom: 1.2rem;
}

.demo-fine {
  margin-top: 1.3rem;
  font-size: 0.85rem;
  color: var(--soft);
  text-align: center;
}

.demo-fine a { color: var(--accent); font-weight: 600; }

/* visually-hidden honeypot — off-screen, not display:none (some bots skip those) */
.demo-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --- result / credentials --- */

.demo-badge {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(39, 69, 60, 0.1);
  color: var(--pine);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1.1rem;
}

.cred-box {
  background: var(--bg);
  border: 1px dashed rgba(34, 30, 26, 0.25);
  border-radius: var(--r-md);
  padding: 0.4rem 1.1rem;
  margin: 1.4rem 0;
}

.cred-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}

.cred-row:last-child { border-bottom: 0; }

.cred-row > span {
  font-size: 0.85rem;
  color: var(--soft);
  font-weight: 500;
}

.cred-row a,
.cred-row code {
  font-family: var(--head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  word-break: break-all;
  text-align: right;
}

.cred-row a { color: var(--accent); text-decoration: none; }
.cred-row a:hover { text-decoration: underline; }
.cred-row code { letter-spacing: 0.02em; }
