/* Kindklos — Clean Green Theme */

:root {
  --primary: #059669;
  --primary-dark: #047857;
  --primary-darker: #065F46;
  --primary-light: #34D399;
  --primary-lighter: #D1FAE5;
  --bg-gradient-start: #059669;
  --bg-gradient-end: #047857;
  --text-dark: #111827;
  --text-mid: #374151;
  --text-light: #6B7280;
  --bg-white: #FFFFFF;
  --bg-gray: #F9FAFB;
  --bg-green-tint: #F0FDF4;
  --border-gray: #E5E7EB;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
               'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Header & Navigation ── */
header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-gray);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--primary-darker);
  text-decoration: none;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

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

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

/* ── Hero Section ── */
.hero {
  background: linear-gradient(155deg, var(--primary-darker) 0%, var(--bg-gradient-start) 55%, var(--primary-light) 100%);
  color: white;
  padding: 7rem 2rem 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M50 50c0-5.5 4.5-10 10-10s10 4.5 10 10-4.5 10-10 10-10-4.5-10-10zm-20 0c0-5.5 4.5-10 10-10s10 4.5 10 10-4.5 10-10 10-10-4.5-10-10zm-20 0c0-5.5 4.5-10 10-10s10 4.5 10 10-4.5 10-10 10-10-4.5-10-10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.375rem 1rem;
  border-radius: 2rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero h1 {
  font-size: 3.75rem;
  margin-bottom: 1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero-tagline {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  opacity: 0.95;
  font-weight: 500;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-sub {
  font-size: 1rem;
  opacity: 0.8;
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 0.875rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* ── Buttons ── */
.btn {
  padding: 0.875rem 2rem;
  border-radius: 0.625rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.btn-primary {
  background-color: white;
  color: var(--primary-darker);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.12);
  color: white;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.btn-green {
  background-color: var(--primary);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-green:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ── Main Content ── */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

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

/* ── Section Heading ── */
.section-heading {
  text-align: center;
  margin-bottom: 3rem;
}

.section-heading h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.section-heading p {
  color: var(--text-light);
  font-size: 1.0625rem;
}

/* ── Features Section ── */
#features {
  padding: 1rem 0 2rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.feature-card {
  background: var(--bg-white);
  padding: 2rem 2.25rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  transition: all 0.25s ease;
  border: 1px solid var(--border-gray);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-lighter);
}

.feature-icon {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-card h3 {
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
}

.feature-card p {
  color: var(--text-light);
  line-height: 1.65;
  font-size: 0.9375rem;
}

/* ── CTA Strip ── */
.cta-strip {
  background: var(--bg-green-tint);
  border: 1px solid var(--primary-lighter);
  border-radius: 1.25rem;
  padding: 3rem 2.5rem;
  text-align: center;
  margin: 3rem 0;
}

.cta-strip h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-darker);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.cta-strip p {
  color: var(--text-mid);
  margin-bottom: 1.75rem;
  font-size: 1.0625rem;
}

/* ── Legal Content ── */
.legal-content {
  background: var(--bg-white);
  padding: 3rem 3.5rem;
  border-radius: 1.25rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-gray);
}

.legal-content h1 {
  color: var(--primary-darker);
  margin-bottom: 0.5rem;
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.legal-meta {
  color: var(--text-light);
  font-size: 0.9375rem;
  margin-bottom: 2rem;
}

.legal-content h2 {
  color: var(--text-dark);
  margin-top: 2.5rem;
  margin-bottom: 0.875rem;
  font-size: 1.375rem;
  font-weight: 700;
  padding-top: 0.5rem;
}

.legal-content h3 {
  color: var(--primary-dark);
  margin-top: 1.5rem;
  margin-bottom: 0.625rem;
  font-size: 1.0625rem;
  font-weight: 600;
}

.legal-content p {
  margin-bottom: 1.125rem;
  color: var(--text-mid);
  line-height: 1.8;
}

.legal-content ul,
.legal-content ol {
  margin: 1rem 0 1rem 1.75rem;
  color: var(--text-mid);
  line-height: 1.8;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

.legal-content a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.legal-content a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.legal-content code {
  background-color: var(--primary-lighter);
  padding: 0.2rem 0.45rem;
  border-radius: 0.3rem;
  font-size: 0.875em;
  color: var(--primary-darker);
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.legal-content blockquote {
  border-left: 3px solid var(--primary);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  color: var(--text-mid);
  background-color: var(--bg-green-tint);
  border-radius: 0 0.5rem 0.5rem 0;
  font-style: italic;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
}

.legal-content th,
.legal-content td {
  border: 1px solid var(--border-gray);
  padding: 0.875rem 1rem;
  text-align: left;
}

.legal-content th {
  background-color: var(--bg-green-tint);
  color: var(--primary-darker);
  font-weight: 700;
}

.legal-content tr:nth-child(even) {
  background-color: var(--bg-gray);
}

.legal-content hr {
  border: none;
  border-top: 1px solid var(--border-gray);
  margin: 2.5rem 0;
}

/* ── Info Boxes ── */
.info-box {
  background-color: var(--bg-green-tint);
  border-left: 3px solid var(--primary);
  padding: 1.125rem 1.5rem;
  margin: 1.75rem 0;
  border-radius: 0 0.75rem 0.75rem 0;
}

.info-box.warning {
  background-color: #FFFBEB;
  border-left-color: #F59E0B;
}

/* ── Footer ── */
footer {
  background: #111827;
  color: white;
  padding: 4rem 2rem 1.5rem;
  margin-top: 6rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
  font-size: 0.9375rem;
  max-width: 320px;
}

.footer-section h4 {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-section ul {
  list-style: none;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  display: block;
  padding: 0.3rem 0;
  font-size: 0.9375rem;
  transition: color 0.15s ease;
}

.footer-section a:hover {
  color: rgba(255, 255, 255, 0.9);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.875rem;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-tagline {
    font-size: 1.0625rem;
  }

  nav {
    height: auto;
    padding: 0.875rem 1.5rem;
    gap: 1rem;
  }

  .nav-links {
    gap: 1.25rem;
  }

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

  .legal-content {
    padding: 1.75rem;
  }

  .legal-content h1 {
    font-size: 1.875rem;
  }

  .legal-content h2 {
    font-size: 1.25rem;
  }

  .hero {
    padding: 5rem 1.5rem 4rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ── Smooth scrolling ── */
html {
  scroll-behavior: smooth;
}

/* ── Selection ── */
::selection {
  background-color: var(--primary-lighter);
  color: var(--primary-darker);
}

/* ── Print ── */
@media print {
  header, footer, .hero-buttons, .cta-strip {
    display: none;
  }
  .legal-content {
    box-shadow: none;
    border: none;
  }
}
