:root {
  --border: #e8edf3;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --success: #16a34a;
  --text: #0f172a;
  --muted: #64748b;
  --subtle: #f8fafc;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: #f1f5f9;
  min-height: 100vh;
}

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

a:hover {
  text-decoration: underline;
}

.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.site-header-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--subtle);
  color: var(--primary);
}

.brand-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-subtitle {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.site-nav a:hover {
  background: var(--subtle);
  color: var(--text);
  text-decoration: none;
}

.site-nav a.active {
  background: #eff6ff;
  border-color: #dbeafe;
  color: var(--primary);
}

.page {
  max-width: 760px;
  margin: 32px auto 48px;
  padding: 0 24px;
}

.card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.05);
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.page-lead {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 28px;
}

.prose h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 28px 0 10px;
  letter-spacing: -0.02em;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: #334155;
  margin-bottom: 12px;
}

.prose ul {
  padding-left: 22px;
  margin-bottom: 16px;
}

.prose li {
  margin-bottom: 8px;
}

.prose strong {
  color: var(--text);
}

.updated {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--subtle);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
  background: #ffffff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.form-field textarea {
  min-height: 160px;
  resize: vertical;
}

.form-hint {
  font-size: 12px;
  color: var(--muted);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  min-width: 140px;
  height: 42px;
  padding: 0 20px;
  border: 1px solid var(--primary);
  border-radius: 10px;
  background: var(--primary);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}

.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #ffffff;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s;
}

.btn-secondary:hover {
  background: var(--subtle);
  text-decoration: none;
}

.thankyou {
  text-align: center;
  padding: 12px 0 8px;
}

.thankyou-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: #f0fdf4;
  border: 1px solid #dcfce7;
  color: var(--success);
  margin-bottom: 20px;
}

.thankyou-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.site-footer {
  max-width: 760px;
  margin: 0 auto 32px;
  padding: 0 24px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 640px) {
  .card {
    padding: 24px 20px;
  }

  .page-title {
    font-size: 24px;
  }

  .site-header-inner {
    padding: 16px 20px;
  }

  .page {
    padding: 0 20px;
    margin-top: 24px;
  }
}
