/* Ulnar Nerve - Shared Styles */

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

:root {
  --bg: #FFFEF8;
  --bg-subtle: #FEFCE8;
  --text: #1a1a1a;
  --text-muted: #525252;
  --accent: #FACC15;
  --accent-hover: #EAB308;
  --accent-green: #16A34A;
  --border: #e5e5e5;
  --card-bg: #ffffff;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

/* Gradient background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(250, 204, 21, 0.5) 0%, transparent 55%),
    radial-gradient(ellipse at 100% 100%, rgba(22, 163, 74, 0.35) 0%, transparent 55%);
  pointer-events: none;
  z-index: -1;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.container-wide {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(255, 254, 248, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  animation: fadeIn 0.6s ease-out;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.logo {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.logo small {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Navigation */
.nav-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--accent-green);
}

.nav-links a.active {
  color: var(--text);
}

/* Main content */
main {
  flex: 1;
  padding: 48px 0 80px;
}

main.hero-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 0;
}

/* Hero section */
.hero {
  animation: fadeUp 0.8s ease-out 0.1s both;
}

.hero h1 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent-green);
}

.hero > p {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 24px;
}

/* Badge/pill styles */
.badge {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  background: rgba(22, 163, 74, 0.1);
  border: 1px solid rgba(22, 163, 74, 0.25);
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.8125rem;
  margin-bottom: 16px;
}

.badge .dot {
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 999px;
  animation: pulse 2s ease-in-out infinite;
}

.pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.pill {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--border);
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--card-bg);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.8125rem;
}

/* Buttons */
.btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 8px;
  border: 1px solid var(--border);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #1a1a1a;
  border-color: var(--accent);
}

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

.btn-ghost {
  background: var(--card-bg);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent-green);
}

.btn:active {
  transform: scale(0.98);
}

/* Email signup */
.signup {
  animation: fadeUp 0.8s ease-out 0.2s both;
  margin-bottom: 48px;
}

.signup-form {
  display: flex;
  gap: 12px;
  max-width: 440px;
}

.signup-form input[type="email"] {
  flex: 1;
  padding: 14px 18px;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card-bg);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.signup-form input[type="email"]::placeholder {
  color: #a0a0a0;
}

.signup-form input[type="email"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.25);
}

.signup-form button {
  padding: 14px 24px;
  font-size: 1rem;
  font-family: inherit;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #1a1a1a;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  white-space: nowrap;
}

.signup-form button:hover {
  background: var(--accent-hover);
}

.signup-form button:active {
  transform: scale(0.98);
}

.signup-note {
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Success/error states */
.signup-message {
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 0.9375rem;
  max-width: 440px;
}

.signup-message.success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.signup-message.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
  animation: fadeUp 0.8s ease-out 0.3s both;
}

.card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card-bg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  border-color: var(--accent-green);
  box-shadow: 0 4px 24px rgba(22, 163, 74, 0.08);
}

.card h3 {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0;
}

/* Section styles */
.section {
  animation: fadeUp 0.8s ease-out both;
}

.section-header {
  margin-bottom: 24px;
}

.section-kicker {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.section h2 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section > p {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
}

/* Bullet items */
.bullets {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  transition: border-color 0.2s ease;
}

.item:hover {
  border-color: var(--accent-green);
}

.check {
  margin-top: 2px;
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 8px;
  background: rgba(22, 163, 74, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(22, 163, 74, 0.2);
}

.check span {
  color: var(--accent-green);
  font-weight: 700;
  font-size: 0.875rem;
}

.item-content strong {
  display: block;
  margin-bottom: 4px;
}

.item-content span {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Two column layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #a0a0a0;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.25);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Contact info */
.contact-info p {
  margin-bottom: 12px;
}

.contact-info a {
  color: var(--accent-green);
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  animation: fadeIn 0.6s ease-out 0.5s both;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-content p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent-green);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(0.9);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .bullets {
    grid-template-columns: 1fr;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .header-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    gap: 16px;
  }
}

@media (max-width: 480px) {
  main {
    padding: 32px 0 48px;
  }

  main.hero-main {
    padding: 48px 0;
  }

  .signup-form {
    flex-direction: column;
  }

  .signup-form button {
    width: 100%;
  }

  .btn-row {
    flex-direction: column;
  }

  .btn-row .btn {
    width: 100%;
  }
}
