/* Patolanodes - Custom CSS */

:root {
  --bg: #FAFBFC;
  --surface: #FFFFFF;
  --text: #0F172A;
  --text-muted: #475569;
  --border: #E2E8F0;
  --accent: #A855F7;
  --accent-hover: #A855F7dd;
  --cta: #22C55E;
  --cta-hover: #22C55Edd;
  --error: #EF4444;
  --success: #10B981;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F172A;
    --surface: #1E293B;
    --text: #F8FAFC;
    --text-muted: #CBD5E1;
    --border: #334155;
  }
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.95);
}

.header-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Merriweather', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

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

.nav a:hover, .nav a.active {
  color: var(--accent);
}

.hero {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content h1 {
  font-family: 'Merriweather', serif;
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-content .subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-size: 0.9375rem;
  min-height: 48px;
  font-family: inherit;
}

.btn-primary {
  background: var(--cta);
  color: white;
}

.btn-primary:hover {
  background: var(--cta-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-secondary:hover {
  background: var(--accent);
  color: white;
}

.hero-visual {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  border-radius: 16px;
  padding: 3rem;
  position: relative;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.stat-card {
  background: rgba(248, 250, 252, 0.05);
  border: 1px solid rgba(248, 250, 252, 0.1);
  border-radius: 8px;
  padding: 1.5rem;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  font-family: 'Merriweather', serif;
}

.stat-label {
  font-size: 0.875rem;
  color: #CBD5E1;
  margin-top: 0.25rem;
}

.article {
  max-width: 800px;
  margin: 4rem auto;
  padding: 0 1.5rem;
}

.article-header {
  margin-bottom: 2rem;
}

.article-category {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.article h1 {
  font-family: 'Merriweather', serif;
  font-size: 2.25rem;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.article-meta {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.article-body {
  font-family: 'Merriweather', serif;
  font-size: 1.125rem;
  line-height: 1.8;
}

.article-body h2 {
  font-size: 1.75rem;
  margin: 2.5rem 0 1rem;
  font-weight: 700;
}

.article-body p {
  margin-bottom: 1.5rem;
}

.pullquote {
  background: var(--surface);
  border-left: 4px solid var(--accent);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text-muted);
  border-radius: 0 8px 8px 0;
}

.stat-box {
  background: linear-gradient(135deg, var(--accent) 0%, var(--cta) 100%);
  color: white;
  padding: 2rem;
  border-radius: 12px;
  margin: 2rem 0;
  text-align: center;
}

.stat-box-number {
  font-size: 3rem;
  font-weight: 700;
  font-family: 'Merriweather', serif;
  margin-bottom: 0.5rem;
}

.stat-box-text {
  font-size: 1rem;
  opacity: 0.95;
}

.quiz-section {
  max-width: 700px;
  margin: 5rem auto;
  padding: 0 1.5rem;
}

.quiz-intro {
  text-align: center;
  margin-bottom: 3rem;
}

.quiz-intro h2 {
  font-family: 'Merriweather', serif;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.quiz-intro p {
  font-size: 1.125rem;
  color: var(--text-muted);
}

.quiz-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 3rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.progress-bar {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--cta));
  transition: width 0.3s ease;
  width: 0%;
}

.qstep {
  display: none;
}

.qstep.active {
  display: block;
}

.qstep h3 {
  font-family: 'Merriweather', serif;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.qoption {
  background: var(--bg);
  border: 2px solid var(--border);
  padding: 1.25rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 1rem;
  display: block;
  width: 100%;
  text-align: left;
  color: var(--text);
}

.qoption:hover {
  border-color: var(--accent);
  background: var(--surface);
  transform: translateX(4px);
}

.qoption.selected {
  border-color: var(--accent);
  background: rgba(0,0,0,0.03);
}

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

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

.form-group input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s;
  min-height: 48px;
}

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

.form-group small {
  display: block;
  margin-top: 0.25rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.consent-group {
  margin: 1.5rem 0;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.consent-group input[type="checkbox"] {
  width: auto;
  min-width: 20px;
  min-height: 20px;
  margin-top: 0.25rem;
}

.consent-group label {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.consent-group a {
  color: var(--accent);
  text-decoration: underline;
}

.error-msg {
  color: var(--error);
  font-size: 0.875rem;
  margin-top: 0.5rem;
  display: none;
}

.success-msg {
  display: none;
  text-align: center;
  padding: 2rem;
}

.success-msg svg {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  display: block;
}

.success-msg h3 {
  font-family: 'Merriweather', serif;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--success);
}

.recent-articles, .section-header {
  max-width: 1200px;
  margin: 5rem auto;
  padding: 0 1.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-family: 'Merriweather', serif;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.125rem;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s;
  text-decoration: none;
  display: block;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.article-card-category {
  background: var(--accent);
  color: white;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  display: inline-block;
  margin: 1.25rem 1.25rem 0;
  border-radius: 4px;
}

.article-card-content {
  padding: 1.25rem;
}

.article-card h3 {
  font-family: 'Merriweather', serif;
  font-size: 1.125rem;
  color: var(--text);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.article-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.article-card-meta {
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.category-hero {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  padding: 4rem 0;
  text-align: center;
  color: white;
}

.category-badge {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.category-hero h1 {
  font-family: 'Merriweather', serif;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.category-hero p {
  font-size: 1.125rem;
  color: #CBD5E1;
  max-width: 600px;
  margin: 0 auto;
}

.articles-section {
  padding: 3rem 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  margin-top: 3rem;
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.articles-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.article-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.2s;
}

.article-item:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.article-item h2 {
  font-family: 'Merriweather', serif;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.article-item p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
}

.sidebar-card h3 {
  font-family: 'Merriweather', serif;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.sidebar-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.sidebar-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.sidebar-links {
  list-style: none;
}

.sidebar-links li {
  margin-bottom: 0.75rem;
}

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

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

.about-hero, .legal-hero, .thankyou-hero {
  text-align: center;
  padding: 4rem 0 2rem;
}

.about-hero h1, .legal-hero h1, .thankyou-hero h1 {
  font-family: 'Merriweather', serif;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.25rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.about-content, .legal-content, .thankyou-content {
  padding: 3rem 0;
}

.content-block, .legal-section {
  margin-bottom: 3rem;
}

.content-block h2, .legal-section h2 {
  font-family: 'Merriweather', serif;
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.content-block p, .legal-section p {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.styled-list, .legal-section ul {
  list-style: none;
  padding-left: 0;
  margin: 1.5rem 0;
}

.styled-list li {
  padding-left: 1.75rem;
  position: relative;
  margin-bottom: 0.75rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.styled-list li:before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

.legal-section ul li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
}

.legal-section h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
}

.legal-section a {
  color: var(--accent);
  text-decoration: underline;
}

.team-section {
  margin: 4rem 0;
}

.team-section h2 {
  font-family: 'Merriweather', serif;
  font-size: 1.75rem;
  margin-bottom: 2rem;
  text-align: center;
}

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

.team-member {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--cta));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}

.team-member h3 {
  font-family: 'Merriweather', serif;
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.role {
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.team-member p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.thankyou-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  color: var(--success);
}

.info-card, .cta-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.info-card h2, .cta-card h3 {
  font-family: 'Merriweather', serif;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.numbered-list {
  list-style: none;
  counter-reset: item;
  padding-left: 0;
}

.numbered-list li {
  counter-increment: item;
  margin-bottom: 1.5rem;
  padding-left: 2.5rem;
  position: relative;
  line-height: 1.7;
}

.numbered-list li:before {
  content: counter(item);
  position: absolute;
  left: 0;
  top: 0;
  background: var(--accent);
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}

.next-steps {
  margin: 3rem 0;
}

.next-steps h2 {
  font-family: 'Merriweather', serif;
  font-size: 1.75rem;
  margin-bottom: 2rem;
  text-align: center;
}

.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  margin-top: 5rem;
  padding: 3rem 0 2rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-about h3 {
  font-family: 'Merriweather', serif;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.footer-about p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.footer-links h4 {
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

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

.footer-links li {
  margin-bottom: 0.75rem;
}

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

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

.footer-disclaimer {
  background: var(--bg);
  padding: 1.5rem;
  border-radius: 8px;
  margin: 2rem 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.875rem;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 1.5rem;
  z-index: 1000;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.1);
  display: none;
}

.cookie-banner.show {
  display: block;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.cookie-text {
  flex: 1;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.cookie-text a {
  color: var(--accent);
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
}

.meta {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.legal-hero {
  border-bottom: 1px solid var(--border);
}

@media (max-width: 768px) {
  .header-wrap {
    flex-direction: column;
    gap: 1rem;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

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

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-visual {
    order: -1;
  }

  .quiz-container {
    padding: 2rem 1.5rem;
  }

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

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

  .cookie-content {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-buttons {
    flex-direction: column;
  }

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

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

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
