:root {
  /* Sole Science Palette */
  --bg-canvas: #faf6ef;
  --bg-surface: #ffffff;
  --text-primary: #2b211a;
  --text-muted: #5e5148;
  --accent-primary: #c2562e; /* Terracotta */
  --accent-secondary: #6b7a3a; /* Olive */
  
  /* Radii & Effects */
  --radius-card: 20px;
  --radius-pill: 50px;
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-base: 0 8px 24px -4px rgba(43, 33, 26, 0.08);
  --shadow-hover: 0 20px 40px -8px rgba(43, 33, 26, 0.18);
  
  /* Grid */
  --max-width: 1200px;
}

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

body {
  font-family: 'Trebuchet MS', 'Segoe UI', sans-serif;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.8;
  overflow-wrap: anywhere;
  hyphens: auto;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-card);
  object-fit: cover;
  display: block;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-secondary);
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

/* Buttons */
.btn {
  display: inline-block;
  background-color: var(--accent-primary);
  color: #ffffff;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: all 0.4s var(--ease-kinetic);
  text-align: center;
}

.btn:hover {
  background-color: var(--accent-secondary);
  color: #ffffff;
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

/* Header & Nav */
header {
  background-color: var(--bg-surface);
  padding: 1rem 2rem;
  position: relative;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.logo {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--text-primary);
  margin-right: 3rem;
}

.logo:hover { color: var(--accent-primary); }

.main-nav {
  display: flex;
  gap: 2rem;
}

.main-nav a {
  color: var(--text-primary);
  font-weight: bold;
  font-size: 1rem;
}

.main-nav a:hover {
  color: var(--accent-primary);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-primary);
  cursor: pointer;
  margin-left: auto;
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: var(--max-width);
  margin: 4rem auto;
  padding: 0 2rem;
  align-items: center;
}

.hero-content {
  text-align: left;
}

.hero-img {
  width: 100%;
  aspect-ratio: 1/1;
}

/* Containers */
.container {
  max-width: var(--max-width);
  margin: 4rem auto;
  padding: 0 2rem;
}

.narrow-container {
  max-width: 72ch;
  margin: 4rem auto;
  padding: 0 2rem;
}

/* Cards & Layout */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-card);
  padding: 2rem;
  box-shadow: var(--shadow-base);
  transition: all 0.5s var(--ease-kinetic);
  border: none;
  position: relative;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.card img {
  aspect-ratio: 4/3;
  margin-bottom: 1.5rem;
}

/* Stat Strips */
.stat-strip {
  display: flex;
  background-color: var(--text-primary);
  color: var(--bg-canvas);
  padding: 1rem;
  border-radius: var(--radius-card);
  justify-content: space-around;
  margin: 2rem 0;
  flex-wrap: wrap;
  gap: 1rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-val {
  font-size: 1.75rem;
  font-weight: bold;
  color: var(--accent-primary);
}

.stat-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Tabs */
.tabs {
  margin: 3rem 0;
}

.tab-nav {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #eaddd3;
  padding-bottom: 1rem;
  overflow-x: auto;
}

.tab-btn {
  background: none;
  border: none;
  font-size: 1.1rem;
  font-family: inherit;
  font-weight: bold;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem 1rem;
  transition: color 0.3s;
  white-space: nowrap;
}

.tab-btn.active, .tab-btn:hover {
  color: var(--accent-primary);
}

.tab-pane {
  display: none;
  background-color: var(--bg-surface);
  padding: 2rem;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-base);
}

.tab-pane.active {
  display: block;
  animation: fadeIn 0.5s var(--ease-kinetic);
}

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

/* Accordion */
.accordion {
  margin: 2rem 0;
}

.accordion-item {
  background-color: var(--bg-surface);
  margin-bottom: 1rem;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-base);
  overflow: hidden;
}

.accordion-header {
  padding: 1.5rem 2rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 1.2rem;
  transition: background-color 0.3s;
}

.accordion-header:hover {
  background-color: var(--bg-canvas);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-kinetic);
  padding: 0 2rem;
}

.accordion-item.active .accordion-content {
  padding: 0 2rem 1.5rem 2rem;
  max-height: 500px;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.pill-input {
  width: 100%;
  padding: 14px 20px;
  border-radius: var(--radius-pill);
  border: 2px solid #eaddd3;
  background-color: var(--bg-surface);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s;
}

textarea.pill-input {
  border-radius: var(--radius-card);
  resize: vertical;
  min-height: 120px;
}

.pill-input:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.tool-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s var(--ease-kinetic);
}

.reveal.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
footer {
  background-color: var(--bg-surface);
  padding: 4rem 2rem 2rem;
  margin-top: 6rem;
  text-align: center;
}

.footer-inner {
  max-width: 800px;
  margin: 0 auto;
}

.footer-inner p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.legal-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.legal-links a {
  color: var(--text-muted);
  font-weight: bold;
  font-size: 0.9rem;
}

.legal-links a:hover {
  color: var(--accent-primary);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-surface);
    flex-direction: column;
    padding: 2rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  }
  
  .main-nav.show {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
