/* Fonts are now loaded via preconnect and async link tags in HTML head for better performance */

:root {
  --primary-50: #fef6f1;
  --primary-100: #fde9dd;
  --primary-200: #fbd3bb;
  --primary-300: #f8b38f;
  --primary-400: #f48d5f;
  --primary-500: #d4773c;
  --primary-600: #b85f2a;
  --primary-700: #9a4d22;
  --primary-800: #7d3f1f;
  --primary-900: #66351c;
  --secondary-100: #fdf0c4;
  --secondary-500: #8b6914;
  --secondary-600: #765710;
  --success-100: #e6ede0;
  --success-500: #6b8e4e;
  --neutral-50: #faf7f2;
  --neutral-100: #f4e9d8;
  --neutral-200: #e8dcc8;
  --neutral-300: #d4c4aa;
  --neutral-500: #7a6b54;
  --neutral-600: #4a3f2e;
  --neutral-700: #3a3224;
  --neutral-900: #1f1910;
  --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.08);
  --shadow-strong: 0 20px 60px rgba(0, 0, 0, 0.12);
  --radius-lg: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--neutral-50);
  color: var(--neutral-700);
  line-height: 1.7;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Sora', 'Plus Jakarta Sans', system-ui, sans-serif;
  color: var(--neutral-900);
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--primary-600);
  text-decoration: none;
  font-weight: 600;
}

a:hover {
  color: var(--primary-700);
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

.background-elements { display: none; }

.topbar {
  width: 100%;
  padding: 1rem 0;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--neutral-200);
  position: sticky;
  top: 0;
  z-index: 20;
}

.container {
  width: min(1040px, calc(100% - 2rem));
  margin: 0 auto;
}

.topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.nav-link {
  font-weight: 600;
  color: var(--neutral-800);
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.nav-link:hover {
  color: var(--primary-700);
  background: var(--neutral-100);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex: 1;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: var(--primary-600);
  box-shadow: var(--shadow-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1.2rem;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title p {
  margin: 0.35rem auto 0;
  color: var(--neutral-600);
  max-width: 760px;
}

.section h2 {
  text-align: center;
  margin-bottom: 0.5rem;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.section h2 + p {
  text-align: center;
  margin: 0.35rem auto 0;
  max-width: 720px;
  color: var(--neutral-600);
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease, color 150ms ease;
}

.btn-primary {
  background: var(--primary-600);
  color: white;
  box-shadow: 0 12px 30px rgba(212, 119, 60, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(212, 119, 60, 0.3);
}

.btn-secondary {
  background: white;
  color: var(--primary-700);
  border: 1px solid var(--neutral-200);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
}

.hero {
  padding: 4.5rem 0 2.5rem;
  position: relative;
}

.hero .container {
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.15;
  color: var(--neutral-900);
  margin-bottom: 0.75rem;
}

.hero p.lead {
  font-size: 1.1rem;
  color: var(--neutral-600);
  max-width: 720px;
  margin: 0.5rem auto 0;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(212, 119, 60, 0.1);
  color: var(--primary-700);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
}

/* duplicate hero text sizing removed for consistency */

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
  justify-content: center;
}

.pill {
  background: rgba(104, 84, 77, 0.07);
  color: var(--neutral-900);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.section {
  padding: 1rem 0 4rem;
}

.flex-split {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1.25fr 1fr;
}

@media (max-width: 960px) {
  .flex-split {
    grid-template-columns: 1fr;
  }
}

.card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--neutral-200);
  box-shadow: var(--shadow-soft);
  padding: 1.5rem;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.section.single-column .container {
  max-width: 820px;
  width: 100%;
}

.section.single-column .card {
  width: 100%;
  margin: 0 auto;
}

.card h3 {
  margin-top: 0;
  font-size: 1.5rem;
  line-height: 1.3;
}

.card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--neutral-700);
}

.card:hover {
  border-color: var(--primary-200);
  box-shadow: var(--shadow-strong);
  transform: translateY(-2px);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem 1.25rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.checkbox-field input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 4px;
}

label {
  font-weight: 700;
  color: var(--neutral-900);
  font-size: 0.96rem;
}

input, textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--neutral-200);
  padding: 0.8rem 0.95rem;
  font-size: 1rem;
  background: white;
  transition: border-color 150ms ease, box-shadow 150ms ease;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  color: var(--neutral-800);
}

input:focus, textarea:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px rgba(212, 119, 60, 0.16);
  outline: none;
}

input.error, textarea.error {
  border-color: #c44536;
  box-shadow: 0 0 0 3px rgba(196, 69, 54, 0.16);
}

small.helper {
  color: var(--neutral-600);
  font-size: 0.9rem;
}

.error-message {
  color: #b33a2c;
  font-size: 0.9rem;
  margin: -0.35rem 0 0.35rem;
}

.status {
  border-radius: 14px;
  padding: 0.9rem 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: none;
}

.status.visible { display: block; }

.status.error {
  background: #fef3f2;
  border: 1px solid #f8aba2;
  color: #952e22;
}

.status.success {
  background: #f4f7f2;
  border: 1px solid #cedcc3;
  color: #435a33;
}

.note {
  background: rgba(106, 142, 78, 0.08);
  border: 1px solid rgba(106, 142, 78, 0.2);
  color: #2f3d27;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.96rem;
}

.list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--neutral-700);
}

.list li {
  margin-bottom: 0.5rem;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.table th, .table td {
  border: 1px solid var(--neutral-200);
  padding: 0.85rem 0.9rem;
  text-align: left;
  font-size: 0.98rem;
}

.table th {
  background: var(--neutral-100);
  color: var(--neutral-900);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--neutral-100);
  color: var(--neutral-900);
  font-weight: 700;
  font-size: 0.9rem;
}

.section .badge {
  display: inline-flex;
  margin: 0 auto 0.75rem;
}

.two-col {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

details {
  border: 1px solid var(--neutral-200);
  border-radius: 14px;
  background: white;
  padding: 1rem 1.2rem;
  box-shadow: var(--shadow-soft);
}

details summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--neutral-900);
  list-style: none;
}

details summary::-webkit-details-marker {
  display: none;
}

footer {
  margin-top: auto;
  padding: 2rem 0;
  border-top: 1px solid var(--neutral-200);
  background: white;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--neutral-600);
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.chip {
  background: rgba(212, 119, 60, 0.12);
  color: var(--primary-700);
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
}

.icon-circle {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(212, 119, 60, 0.16), rgba(106, 142, 78, 0.12));
  color: var(--primary-700);
  font-weight: 800;
  font-size: 1.25rem;
}

small.caption {
  color: var(--neutral-600);
  font-size: 0.9rem;
  display: inline-block;
  margin-top: 0.4rem;
}

blockquote {
  margin: 0;
  padding: 1.1rem 1.2rem;
  border-left: 4px solid var(--primary-500);
  background: rgba(244, 141, 95, 0.08);
  border-radius: 12px;
  color: var(--neutral-800);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

@media (max-width: 720px) {
  .topbar-row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    min-height: auto;
    padding: 0.5rem 0;
  }
  .logo {
    flex-shrink: 0;
  }
  .logo-mark {
    width: 28px;
    height: 28px;
    font-size: 0.95rem;
    border-radius: 10px;
  }
  .logo-text {
    font-size: 1rem;
  }
  .nav-links {
    gap: 0.25rem;
    flex: 1;
    justify-content: flex-end;
  }
  .nav-link {
    padding: 0.35rem 0.4rem;
    font-size: 0.8rem;
  }
  .topbar-actions {
    width: 100%;
    gap: 0.5rem;
    order: 3;
    justify-content: stretch;
  }
  .topbar-actions .nav-links {
    width: auto;
  }
  .topbar-actions .btn {
    padding: 0.65rem 0.9rem;
    font-size: 0.9rem;
    white-space: nowrap;
    flex: 1;
  }
  .hero { padding-top: 3rem; }
  .btn { width: 100%; text-align: center; }
  .flex-split { gap: 1rem; }
}

@media (max-width: 420px) {
  .nav-link {
    padding: 0.3rem 0.35rem;
    font-size: 0.75rem;
  }
  .nav-links {
    gap: 0.2rem;
  }
  .logo-mark {
    width: 26px;
    height: 26px;
    font-size: 0.9rem;
  }
  .logo-text {
    font-size: 0.95rem;
  }
}
.cta-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
  align-items: center;
}
