/* Trial signup — styled to match www.sccodeworks.com brand.
 * Color tokens lifted from sccodeworks.com style-guide so the trial
 * page feels like the same product, not a stranger.
 *   primary  #00a9df  cyan-blue (CTAs, links)
 *   secondary #84b641  green (success ticks)
 *   heading  #181818
 *   body     #808080
 *   gradient linear-gradient(-90deg, #172c59 0%, #069ed1 100%)
 *   cta-bg   #F0F4F5
 */

:root {
  --c-primary: #00a9df;
  --c-primary-dark: #069ed1;
  --c-secondary: #84b641;
  --c-heading: #181818;
  --c-body: #808080;
  --c-text-on-primary: #ffffff;
  --c-bg: #ffffff;
  --c-cta-bg: #F0F4F5;
  --c-card: #ffffff;
  --c-border: #e5e5e5;
  --c-danger: #c62828;
  --c-success: #2e7d32;
  --gradient: linear-gradient(-90deg, #172c59 0%, #069ed1 100%);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(23, 44, 89, 0.08);
  --shadow-lg: 0 10px 40px rgba(23, 44, 89, 0.12);
  --radius: 8px;
  --radius-lg: 14px;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--c-heading);
  background: var(--c-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--c-primary); text-decoration: none; }
a:hover { color: var(--c-primary-dark); }

/* --- Top nav --- */
.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
}
.logo { height: 38px; width: auto; }
.nav-link { font-size: 0.92rem; color: var(--c-body); }
.nav-link:hover { color: var(--c-primary); }

/* --- Hero --- */
.hero {
  background: var(--gradient);
  color: var(--c-text-on-primary);
  padding: 3.5rem 2rem 2.5rem;
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  text-align: center;
  letter-spacing: -0.02em;
  color: #ffffff;
}
.hero .lede {
  max-width: 760px;
  margin: 0 auto 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.1rem;
}

/* Benefits list */
.benefits {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 720px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
}
@media (min-width: 720px) {
  .benefits { grid-template-columns: 1fr 1fr; gap: 0.65rem 2rem; }
}
.benefits li {
  position: relative;
  padding-left: 2rem;
  color: rgba(255, 255, 255, 0.95);
  font-size: 1rem;
}
.benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 1.4rem;
  height: 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--c-secondary);
  color: #fff;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 0.18rem;
}

/* --- Form card --- */
main {
  display: flex;
  justify-content: center;
  padding: 3rem 1rem 4rem;
  background: var(--c-cta-bg);
}
.trial-form, .success {
  background: var(--c-card);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 520px;
  margin-top: -4rem;     /* pull the form upward so it overlaps the hero */
  position: relative;
  z-index: 2;
}
.trial-form h2, .success h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--c-heading);
  letter-spacing: -0.01em;
}
.muted { color: var(--c-body); font-size: 0.92rem; }

label {
  display: block;
  margin: 1.1rem 0 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--c-heading);
}
label > span { display: block; margin-bottom: 0.35rem; }
label.checkbox { display: flex; align-items: flex-start; gap: 0.6rem; font-weight: 400; }
label.checkbox > span { display: inline; color: var(--c-body); font-size: 0.88rem; }

input[type="email"], input[type="text"], input[type="tel"], select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  font: inherit;
  background: #fff;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
input:focus, select:focus {
  outline: 0;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(0, 169, 223, 0.15);
}

button[type="submit"] {
  margin-top: 1.5rem;
  padding: 0.85rem 1.5rem;
  width: 100%;
  border: 0;
  border-radius: var(--radius);
  background: var(--c-primary);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 120ms ease, transform 80ms ease;
}
button[type="submit"]:hover:not(:disabled) {
  background: var(--c-primary-dark);
  transform: translateY(-1px);
}
button[type="submit"]:disabled { opacity: 0.7; cursor: progress; }

#formStatus {
  min-height: 1.4rem;
  margin-top: 0.65rem;
  font-size: 0.92rem;
}
#formStatus.error { color: var(--c-danger); }
#formStatus.success { color: var(--c-success); }

footer {
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.88rem;
  color: var(--c-body);
  background: var(--c-bg);
  border-top: 1px solid var(--c-border);
}
footer a { color: var(--c-body); }
footer a:hover { color: var(--c-primary); }
