@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --canvas: #f7f7f4;
  --canvas-soft: #fafaf7;
  --surface-card: #ffffff;
  --surface-strong: #e6e5e0;
  --primary: #f54e00;
  --primary-active: #d04200;
  --ink: #26251e;
  --body: #5a5852;
  --body-strong: #26251e;
  --muted: #807d72;
  --muted-soft: #a09c92;
  --on-primary: #ffffff;
  --hairline: #e6e5e0;
  --hairline-soft: #efeee8;
  --hairline-strong: #cfcdc4;
  --success: #1f8a65;
  --error: #cf2d56;
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 9999px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--canvas);
  color: var(--body);
  font-family: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--primary); }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* NAV */
.site-nav {
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-logo {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.3px;
}
.nav-logo span { color: var(--primary); }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--primary); }
.nav-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); margin: 4px 0; transition: 0.3s;
}

/* HERO */
.hero {
  padding: 80px 0;
  border-bottom: 1px solid var(--hairline);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.hero h1 {
  font-size: 48px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -1.2px;
  color: var(--ink);
  margin-bottom: 20px;
}
.hero p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.6;
  max-width: 480px;
}
.hero-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
}
.hero-img img { width: 100%; height: 340px; object-fit: cover; }

/* SECTIONS */
section { padding: 80px 0; }
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.section-title {
  font-size: 36px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.72px;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 16px;
  color: var(--body);
  line-height: 1.6;
  max-width: 600px;
  margin-bottom: 40px;
}
.section-divider { border: none; border-top: 1px solid var(--hairline); margin: 0; }

/* CARDS */
.card-grid { display: grid; gap: 24px; }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.card-img {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid var(--hairline-soft);
}
.card-img img { width: 100%; height: 200px; object-fit: cover; }
.card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--surface-strong);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  margin-bottom: 10px;
}
.card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 8px;
}
.card p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
}
.card-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
}

/* ARTICLE CARDS */
.article-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.article-card-img { overflow: hidden; }
.article-card-img img { width: 100%; height: 220px; object-fit: cover; transition: transform 0.3s; }
.article-card:hover .article-card-img img { transform: scale(1.03); }
.article-card-body { padding: 20px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.article-card-body h3 { font-size: 18px; font-weight: 600; color: var(--ink); margin-bottom: 8px; line-height: 1.35; }
.article-card-body p { font-size: 14px; color: var(--body); line-height: 1.55; flex: 1; }
.article-card-meta { font-size: 13px; color: var(--muted); margin-top: 14px; }

/* COMPARISON TABLE */
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td {
  padding: 12px 16px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--hairline);
}
.compare-table thead th {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--canvas-soft);
}
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody td { color: var(--body); }
.compare-table tbody td:first-child { font-weight: 600; color: var(--ink); }

/* FEATURE BAND */
.feature-band { background: var(--surface-card); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.feature-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.feature-item {
  padding: 32px 24px;
  border-right: 1px solid var(--hairline);
}
.feature-item:last-child { border-right: none; }
.feature-item h4 { font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.feature-item p { font-size: 14px; color: var(--body); line-height: 1.55; }

/* ARTICLE PAGE */
.article-hero { padding: 60px 0 0; }
.article-hero-meta { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.article-hero h1 {
  font-size: 42px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 20px;
  max-width: 800px;
}
.article-hero .lead {
  font-size: 18px;
  color: var(--body);
  line-height: 1.6;
  max-width: 680px;
  margin-bottom: 32px;
}
.article-hero-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
  margin-bottom: 0;
}
.article-hero-img img { width: 100%; max-height: 480px; object-fit: cover; }

.article-body { padding: 48px 0 80px; }
.article-content { max-width: 740px; }
.article-content h2 {
  font-size: 26px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.325px;
  line-height: 1.25;
  margin: 40px 0 16px;
}
.article-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin: 28px 0 12px;
}
.article-content p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 20px;
}
.article-content ul, .article-content ol {
  margin: 0 0 20px 20px;
  color: var(--body);
  font-size: 16px;
  line-height: 1.7;
}
.article-content li { margin-bottom: 6px; }
.article-content a { color: var(--primary); text-decoration: underline; }
.article-content .ref-box {
  background: var(--canvas-soft);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 28px 0;
  font-size: 14px;
  color: var(--muted);
}
.article-content .ref-box strong { color: var(--ink); }
.article-sidebar { position: sticky; top: 88px; }
.sidebar-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
}
.sidebar-card h4 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.7px; color: var(--muted); margin-bottom: 12px; }
.sidebar-toc { list-style: none; }
.sidebar-toc li { margin-bottom: 8px; }
.sidebar-toc a { font-size: 14px; color: var(--body); line-height: 1.4; }
.sidebar-toc a:hover { color: var(--primary); }

.article-layout { display: grid; grid-template-columns: 1fr 280px; gap: 48px; align-items: start; }

/* FORM */
.contact-form .form-group { margin-bottom: 20px; }
.contact-form label { display: block; font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.contact-form input, .contact-form textarea {
  width: 100%;
  background: var(--surface-card);
  color: var(--ink);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 16px;
  font-family: inherit;
  height: 44px;
  transition: border-color 0.15s;
}
.contact-form textarea { height: auto; min-height: 120px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--ink);
}
.contact-form input.error, .contact-form textarea.error { border-color: var(--error); }
.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  border: none;
  border-radius: var(--radius-md);
  padding: 10px 18px;
  height: 40px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary:hover { background: var(--primary-active); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.form-message { margin-top: 16px; padding: 12px 16px; border-radius: var(--radius-md); font-size: 14px; display: none; }
.form-message.success { background: #e8f5f0; color: var(--success); border: 1px solid #b8dfd1; display: block; }
.form-message.error { background: #fdeef2; color: var(--error); border: 1px solid #f0b8c4; display: block; }

/* COOKIE BANNER */
#cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 680px;
  background: var(--ink);
  color: var(--canvas);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 9999;
  box-shadow: 0 4px 24px rgba(38,37,30,0.18);
}
#cookie-banner p { font-size: 14px; line-height: 1.5; flex: 1; }
#cookie-banner a { color: var(--canvas); text-decoration: underline; }
.cookie-buttons { display: flex; gap: 10px; flex-shrink: 0; }
.btn-cookie-accept {
  background: var(--primary);
  color: var(--on-primary);
  border: none;
  border-radius: var(--radius-md);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.btn-cookie-reject {
  background: transparent;
  color: var(--canvas);
  border: 1px solid rgba(247,247,244,0.3);
  border-radius: var(--radius-md);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.btn-cookie-accept:hover { background: var(--primary-active); }
.btn-cookie-reject:hover { border-color: rgba(247,247,244,0.6); }

/* FOOTER */
.site-footer {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: 64px 0 48px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand p { font-size: 14px; color: var(--body); line-height: 1.6; margin-top: 10px; max-width: 260px; }
.footer-col h4 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.7px; color: var(--ink); margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { font-size: 14px; color: var(--body); }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--hairline); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: 13px; color: var(--muted); }
.footer-bottom a { font-size: 13px; color: var(--muted); }
.footer-bottom a:hover { color: var(--primary); }

/* DISCLAIMER */
.disclaimer-bar {
  background: var(--canvas-soft);
  border-top: 1px solid var(--hairline-soft);
  padding: 10px 0;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

/* PAGE HERO */
.page-hero { padding: 60px 0 40px; border-bottom: 1px solid var(--hairline); }
.page-hero h1 { font-size: 36px; font-weight: 400; color: var(--ink); letter-spacing: -0.72px; margin-bottom: 12px; }
.page-hero p { font-size: 16px; color: var(--body); max-width: 560px; }

/* PROSE (about/privacy/terms) */
.prose { max-width: 760px; }
.prose h2 { font-size: 22px; font-weight: 600; color: var(--ink); margin: 36px 0 12px; }
.prose h3 { font-size: 18px; font-weight: 600; color: var(--ink); margin: 24px 0 10px; }
.prose p { font-size: 16px; color: var(--body); line-height: 1.7; margin-bottom: 18px; }
.prose ul, .prose ol { margin: 0 0 18px 22px; color: var(--body); font-size: 16px; line-height: 1.7; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--primary); text-decoration: underline; }
.updated-date { font-size: 13px; color: var(--muted); margin-bottom: 32px; }

/* BREADCRUMB */
.breadcrumb { font-size: 13px; color: var(--muted); padding: 14px 0; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 6px; }

/* SPECIES TABLE */
.species-box {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
}
.species-box-header {
  padding: 16px 20px;
  background: var(--canvas-soft);
  border-bottom: 1px solid var(--hairline);
}
.species-box-header h4 { font-size: 16px; font-weight: 600; color: var(--ink); }
.species-box-header span { font-size: 13px; color: var(--muted); font-style: italic; }
.species-box-body { padding: 16px 20px; }
.species-box-body dl { display: grid; grid-template-columns: 140px 1fr; gap: 8px 16px; }
.species-box-body dt { font-size: 13px; font-weight: 600; color: var(--ink); }
.species-box-body dd { font-size: 13px; color: var(--body); }

/* HIGHLIGHT BOX */
.highlight-box {
  background: var(--canvas-soft);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 16px 20px;
  margin: 24px 0;
}
.highlight-box p { font-size: 15px; color: var(--ink); margin: 0; line-height: 1.6; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .feature-list { grid-template-columns: repeat(2, 1fr); }
  .feature-item:nth-child(2) { border-right: none; }
  .feature-item:nth-child(3) { border-top: 1px solid var(--hairline); }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { display: none; }
}
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; letter-spacing: -0.8px; }
  .hero-img { display: none; }
  .section-title { font-size: 28px; }
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    padding: 16px 24px;
    gap: 14px;
  }
  .card-grid-3 { grid-template-columns: 1fr; }
  .card-grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr; }
  .feature-item { border-right: none; border-top: 1px solid var(--hairline); }
  .feature-item:first-child { border-top: none; }
  #cookie-banner { flex-direction: column; align-items: flex-start; }
  .article-hero h1 { font-size: 30px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
@media (max-width: 640px) {
  .hero { padding: 48px 0; }
  section { padding: 48px 0; }
  .compare-table { font-size: 12px; }
  .compare-table th, .compare-table td { padding: 8px 10px; }
}
