/* Kobalt Base Styles — shared across all landing pages */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=DM+Serif+Display&display=swap');

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand colors */
  --kobalt-50: #e6eef8;
  --kobalt-100: #b3ccea;
  --kobalt-200: #809adc;
  --kobalt-300: #4d78ce;
  --kobalt-400: #2660c0;
  --kobalt-500: #0047AB; /* Primary */
  --kobalt-600: #003d94;
  --kobalt-700: #00337d;
  --kobalt-800: #002966;
  --kobalt-900: #001f4f;

  /* Neutrals */
  --background: #F5F4F0;
  --foreground: #1a1a1a;
  --muted: #6b7280;
  --border: rgba(0, 0, 0, 0.08);

  /* Accents */
  --accent-blue: #0047AB;
  --accent-pink: #E91E63;
  --accent-teal: #009688;

  /* Semantic */
  --success: #0D7A4A;
  --warning: #B27300;
  --error: #DC2626;

  /* Typography */
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'DM Serif Display', Georgia, serif;

  /* Spacing */
  --container-max: 1120px;
  --section-padding: 80px;
  --section-padding-mobile: 48px;

  /* Borders */
  --radius: 10px;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--foreground);
  background: var(--background);
  line-height: 1.6;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--kobalt-500); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Container */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography utilities */
.font-display { font-family: var(--font-display); }
.font-light { font-weight: 300; }
.text-muted { color: var(--muted); }
.text-kobalt { color: var(--kobalt-500); }

.label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* Card */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--kobalt-500);
  color: #fff;
}
.btn-primary:hover {
  background: var(--kobalt-600);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 71, 171, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--kobalt-500);
  border: 1.5px solid var(--kobalt-500);
}
.btn-outline:hover {
  background: var(--kobalt-50);
  text-decoration: none;
}

/* Section spacing */
section {
  padding: var(--section-padding) 0;
}

@media (max-width: 768px) {
  section {
    padding: var(--section-padding-mobile) 0;
  }

  .container {
    padding: 0 16px;
  }
}

/* Fade-up animation */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-up {
  animation: fade-up 0.5s ease-out forwards;
  opacity: 0;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* Lead capture form */
.lead-form {
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 6px;
}

.form-field label .text-muted {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.4);
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.12);
}

textarea.form-input {
  resize: vertical;
  min-height: 56px;
}

.lead-form .btn {
  width: 100%;
  margin-top: 8px;
  padding: 14px 28px;
  font-size: 16px;
}

.lead-form .btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-error {
  color: #FF6B6B;
  font-size: 14px;
  margin-top: 12px;
  text-align: center;
}

.form-success {
  text-align: center;
  animation: fade-up 0.4s ease-out forwards;
}

.form-success h3 {
  color: #fff;
  font-weight: 300;
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.form-success p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
}

.form-success .checkmark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #28DFBD;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.form-success .checkmark svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .lead-form {
    max-width: 100%;
  }
}

/* Mid-page CTA */
.mid-cta { background: var(--kobalt-50, #E8EFF8); border-top: 1px solid rgba(0,0,0,0.06); border-bottom: 1px solid rgba(0,0,0,0.06); }

/* Related reading links */
.related-reading {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.related-reading .label {
  margin-bottom: 20px;
}

.related-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.related-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground);
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.related-link:hover {
  border-color: var(--kobalt-500);
  box-shadow: 0 4px 12px rgba(0, 71, 171, 0.1);
  text-decoration: none;
}

.related-title {
  font-weight: 500;
  font-size: 15px;
  line-height: 1.4;
}

.related-arrow {
  color: var(--kobalt-500);
  font-size: 18px;
  margin-left: 12px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .related-links {
    grid-template-columns: 1fr;
  }
}
