/* CRM Online signup site - the one stylesheet.
   Palette = the crmonline.co.za Kadence global palette (read from the live site 2026-09-07).
   Primary button gradient = the site's button / logo purple. System font stack, no external requests. */

:root {
  --c-primary:      #2B6CB0;
  --c-primary-dark: #215387;
  --c-ink:          #1A202C;
  --c-text:         #2D3748;
  --c-text-mid:     #4A5568;
  --c-text-muted:   #718096;
  --c-line:         #E2E8F0;
  --c-line-soft:    #EDF2F7;
  --c-bg:           #F7FAFC;
  --c-card:         #FFFFFF;
  --c-success:      #13612E;
  --c-success-soft: #E3F3E8;
  --c-info:         #1159AF;
  --c-info-soft:    #E6F0FB;
  --c-error:        #B82105;
  --c-error-soft:   #FBE9E5;
  --c-warn:         #F7630C;
  --c-warn-soft:    #FEF0E6;
  --c-amber:        #F5A524;
  --btn-gradient:   linear-gradient(135deg, #3E34BE 0%, #AE61D4 100%);
  --radius:         12px;
  --radius-sm:      8px;
  --shadow:         0 8px 24px rgba(26, 32, 44, 0.08);
  --shadow-lg:      0 20px 50px rgba(26, 32, 44, 0.12);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
}
img, svg { max-width: 100%; }
a { color: var(--c-primary); }
a:hover { color: var(--c-primary-dark); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.01em; color: var(--c-ink); }
h1 { font-size: clamp(1.75rem, 4.5vw, 2.4rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
code, .mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 1.1rem; }
.wrap.narrow { max-width: 842px; }
.center { text-align: center; }
.muted { color: var(--c-text-muted); }
.small { font-size: 0.9rem; }
.m0 { margin: 0; }
.mt-sm { margin: 0.6rem 0 0; }
.error { color: var(--c-error); font-size: 0.9rem; font-weight: 600; }

.skip { position: absolute; left: -999px; top: 0; background: var(--c-ink); color: #fff; padding: 0.5rem 1rem; border-radius: 0 0 8px 0; z-index: 100; }
.skip:focus { left: 0; }

/* ----- top bar ----- */
.topbar { background: var(--c-card); border-bottom: 1px solid var(--c-line); position: sticky; top: 0; z-index: 20; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; }
.brand-img { display: block; height: 48px; width: auto; }
.brand.small .brand-img { height: 36px; }
.brand-text { font-weight: 800; font-size: 1.5rem; letter-spacing: -0.02em; background: var(--btn-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.topnav { display: flex; align-items: center; gap: 1.1rem; }
.topnav a { text-decoration: none; font-weight: 600; color: var(--c-text-mid); font-size: 0.95rem; }
.topnav a:hover { color: var(--c-ink); }
.topnav a:not(.btn) { display: none; }
@media (min-width: 720px) { .topnav a:not(.btn) { display: inline; } }

/* ----- buttons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  line-height: 1.2;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--btn-gradient); color: #fff; box-shadow: 0 6px 18px rgba(62, 52, 190, 0.28); }
.btn-primary:hover { background: var(--c-ink); color: #fff; box-shadow: none; }
.btn-secondary { background: var(--c-line-soft); color: var(--c-ink); }
.btn-secondary:hover { background: var(--c-line); }
.btn-green { background: var(--c-success); color: #fff; }
.btn-green:hover { background: #0F4F25; color: #fff; }
.btn-lg { padding: 1rem 1.9rem; font-size: 1.08rem; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.9rem; }
.btn:disabled { opacity: 0.65; cursor: wait; }

/* ----- hero ----- */
.hero { padding: 3rem 0 2.5rem; background: linear-gradient(180deg, #FFFFFF 0%, var(--c-bg) 100%); }
.hero-inner { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; }
@media (min-width: 880px) { .hero-inner { grid-template-columns: 1.15fr 0.85fr; gap: 3rem; } }
.pill { display: inline-block; background: var(--c-success-soft); color: var(--c-success); font-weight: 700; font-size: 0.85rem; padding: 0.3rem 0.8rem; border-radius: 999px; margin-bottom: 0.9rem; }
.lead { font-size: 1.15rem; color: var(--c-text-mid); max-width: 36rem; }
.hero-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin: 1.2rem 0; }
.hero-actions .note { color: var(--c-text-muted); font-size: 0.95rem; }
.trust { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; font-weight: 600; color: var(--c-text-mid); font-size: 0.95rem; }
.trust li { display: inline-flex; align-items: center; gap: 0.45rem; }
.trust svg { width: 20px; height: 20px; flex: none; }
.hero-card { background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-lg); }
.hero-card ul { margin: 0 0 1rem; padding-left: 1.2rem; }
.hero-card li { margin: 0.35rem 0; }

/* ----- sections ----- */
.section { padding: 3rem 0; }
.section-title { text-align: center; }
.section-sub { text-align: center; color: var(--c-text-muted); margin-bottom: 2rem; }
.steps { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.step-num { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 50%; background: var(--btn-gradient); color: #fff; font-weight: 800; margin-bottom: 0.7rem; }
.step p { margin: 0; color: var(--c-text-mid); }

/* ----- cards + forms ----- */
.card { background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); margin-bottom: 1.2rem; }
fieldset { border: 0; padding: 0; margin: 0 0 1.4rem; }
legend { font-weight: 700; color: var(--c-ink); font-size: 1.05rem; padding: 0; margin-bottom: 0.8rem; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 1rem 1.2rem; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.3rem; color: var(--c-ink); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select {
  width: 100%; padding: 0.7rem 0.85rem; border: 1px solid #CBD5E0; border-radius: var(--radius-sm);
  font: inherit; color: var(--c-text); background: #fff;
}
.field input:focus, .field select:focus { outline: 2px solid var(--c-primary); outline-offset: 1px; border-color: var(--c-primary); }
.field input[type="file"] { font: inherit; }
.field.has-error input, .field.has-error select { border-color: var(--c-error); }
.hint { color: var(--c-text-mid); font-size: 0.85rem; margin: 0.3rem 0 0; }
.optional { color: var(--c-text-muted); font-weight: 500; font-size: 0.85rem; }
.slug-preview { margin-top: 0.4rem; font-size: 0.95rem; color: var(--c-text-mid); }
.slug-preview strong { color: var(--c-ink); word-break: break-all; }
.captcha-q { font-weight: 800; color: var(--c-ink); font-size: 1.05rem; }
.check { display: grid; grid-template-columns: auto 1fr; gap: 0.6rem; align-items: start; }
.check input { margin-top: 0.3rem; width: 18px; height: 18px; }
.check label { font-size: 0.95rem; }
.check.has-error label { color: var(--c-error); }
.hp { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }
.form-actions { margin-top: 0.4rem; }
.privacy-note { color: var(--c-text-muted); font-size: 0.85rem; margin: 0.9rem 0 0; }

.alert { border-radius: var(--radius-sm); padding: 0.9rem 1rem; margin-bottom: 1rem; border: 1px solid transparent; }
.alert ul { margin: 0.4rem 0 0; padding-left: 1.2rem; }
.alert-error { background: var(--c-error-soft); color: var(--c-error); border-color: #F3C2B8; }
.alert-info { background: var(--c-info-soft); color: var(--c-info); border-color: #C6DBF3; }
.alert-warn { background: var(--c-warn-soft); color: #8A3A05; border-color: #F8CDB0; }

/* ----- FAQ ----- */
.faq details { background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--radius-sm); padding: 0.8rem 1rem; margin-bottom: 0.6rem; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--c-ink); }
.faq p { margin: 0.6rem 0 0; color: var(--c-text-mid); }

/* ----- status page ----- */
.status-head { text-align: center; padding: 2.2rem 0 1.2rem; }
.eyebrow { color: var(--c-text-muted); font-weight: 600; letter-spacing: 0.02em; margin-bottom: 0.3rem; word-break: break-all; }
.status-badge { display: inline-block; padding: 0.3rem 0.8rem; border-radius: 999px; font-weight: 700; font-size: 0.85rem; }
.status-badge.wait { background: #FDF3DC; color: #8A5A00; }
.status-badge.run { background: var(--c-info-soft); color: var(--c-info); }
.status-badge.ok { background: var(--c-success-soft); color: var(--c-success); }
.status-badge.bad { background: var(--c-error-soft); color: var(--c-error); }
.spinner { display: inline-block; width: 16px; height: 16px; border: 3px solid var(--c-line); border-top-color: var(--c-info); border-radius: 50%; animation: spin 0.9s linear infinite; vertical-align: -3px; margin-right: 0.4rem; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress { list-style: none; padding: 0; margin: 1rem 0 0; }
.progress li { display: flex; align-items: center; gap: 0.7rem; padding: 0.45rem 0; color: var(--c-text-muted); }
.progress li.active { color: var(--c-info); font-weight: 700; }
.progress li.done { color: var(--c-success); }
.progress .dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--c-line); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.progress li.active .dot { border-color: var(--c-info); box-shadow: 0 0 0 4px var(--c-info-soft); }
.progress li.done .dot { background: var(--c-success); border-color: var(--c-success); }
.progress .dot svg { width: 14px; height: 14px; }
.big-link { text-align: center; margin: 0.8rem 0; }
.big-link .btn { max-width: 100%; word-break: break-all; }
.kv { margin: 0; }
.kv div { display: grid; grid-template-columns: 1fr; gap: 0.2rem 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--c-line-soft); }
@media (min-width: 560px) { .kv div { grid-template-columns: 170px 1fr; } }
.kv dt { font-weight: 600; color: var(--c-text-mid); }
.kv dd { margin: 0; display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.kv code { background: var(--c-line-soft); padding: 0.25rem 0.5rem; border-radius: 6px; word-break: break-all; }
.copy { font: inherit; font-size: 0.8rem; font-weight: 700; padding: 0.25rem 0.6rem; border-radius: 6px; border: 1px solid var(--c-line); background: #fff; cursor: pointer; color: var(--c-primary); }
.copy:hover { border-color: var(--c-primary); }
.mini-steps { padding-left: 1.3rem; margin: 0; }
.mini-steps li { margin: 0.4rem 0; }
.ref { font-family: ui-monospace, Menlo, Consolas, monospace; background: var(--c-line-soft); padding: 0.1rem 0.4rem; border-radius: 4px; }
.actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.inline { display: inline; }

/* ----- footer ----- */
.footer { border-top: 1px solid var(--c-line); background: var(--c-card); padding: 2rem 0; margin-top: 2rem; }
.footer-inner { display: grid; gap: 0.6rem; text-align: center; }
.footer-text { color: var(--c-text-muted); font-size: 0.9rem; margin: 0; }
.footer-credit { color: var(--c-text-muted); font-size: 0.85rem; margin: 0; }
