:root {
  --c-primary: #c97b63;
  --c-primary-dark: #a85d46;
  --c-dark: #1a1410;
  --c-bg: #ffffff;
  --c-bg-soft: #faf6f2;
  --c-border: #e9e0d6;
  --c-text: #14100d;
  --c-muted: rgba(0,0,0,.6);
  --spacing-rhythm: 96px;
  --radius: 14px;
  --shadow: 0 4px 20px rgba(0,0,0,.06);
  --font-heading: 'Fraunces', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --hue-shift: 0deg;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--c-text);
  background-color: var(--c-bg);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  color: var(--c-text);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1em; }
a { color: var(--c-primary); text-decoration: none; transition: color 200ms; }
a:hover { color: var(--c-primary-dark); text-decoration: underline; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding-top: var(--spacing-rhythm);
  padding-bottom: var(--spacing-rhythm);
  background-color: var(--c-bg);
}

.section:nth-child(even) {
  background-color: var(--c-bg-soft);
}

main {
  min-height: calc(100vh - 200px);
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--c-border);
  background: var(--c-bg);
}

.header-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--c-text);
  font-family: var(--font-heading);
}

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

.nav-link {
  color: var(--c-text);
  font-weight: 500;
  transition: color 200ms;
}

.nav-link:hover {
  color: var(--c-primary);
}

.burger-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.burger-menu span {
  width: 25px;
  height: 3px;
  background: var(--c-text);
  transition: all 200ms;
}

.burger-menu.open span:nth-child(1) {
  transform: rotate(45deg) translateY(10px);
}

.burger-menu.open span:nth-child(2) {
  opacity: 0;
}

.burger-menu.open span:nth-child(3) {
  transform: rotate(-45deg) translateY(-10px);
}

.hero-section h1 {
  text-align: center;
  margin-bottom: 0.5em;
}

.hero-section > p {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: var(--c-muted);
}

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

.btn-primary, .btn-secondary {
  padding: 12px 24px;
  border-radius: var(--radius);
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 200ms;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

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

.btn-primary:hover {
  background-color: var(--c-primary-dark);
  text-decoration: none;
}

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

.btn-secondary:hover {
  background-color: var(--c-primary);
  color: white;
  text-decoration: none;
}

.hero-chips {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.chip {
  background-color: var(--c-bg-soft);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  border: 1px solid var(--c-border);
  color: var(--c-text);
}

.comparison-wrapper {
  overflow-x: auto;
  margin-top: 2rem;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
}

.comparison-table thead {
  background-color: var(--c-primary);
  color: white;
}

.comparison-table th {
  padding: 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.95rem;
}

.comparison-table td {
  padding: 16px;
  border-bottom: 1px solid var(--c-border);
  vertical-align: middle;
}

.comparison-row:last-child td {
  border-bottom: none;
}

.comparison-row.top-pick {
  background-color: var(--c-bg-soft);
  font-weight: 500;
}

.badge {
  display: inline-block;
  background-color: var(--c-primary);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-left: 8px;
}

.app-link {
  color: var(--c-primary);
  font-weight: 600;
}

.app-link:hover {
  text-decoration: underline;
}

.stars {
  display: flex;
  gap: 4px;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
}

.fa-star {
  color: var(--c-primary);
  font-size: 1.1rem;
}

.fa-star-half-stroke {
  color: var(--c-primary);
  font-size: 1.1rem;
}

.rating-text {
  margin-left: 8px;
  color: var(--c-text);
}

.editor-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: 2rem;
}

.editor-header {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.editor-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.editor-info h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
}

.editor-body {
  line-height: 1.8;
}

.editor-body ul {
  list-style: none;
  margin: 1.5rem 0;
}

.editor-body li {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.fa-check {
  color: var(--c-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

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

.methodology-step {
  background: white;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.methodology-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: var(--c-primary);
  color: white;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}

.methodology-step h3 {
  margin-top: 0;
  margin-bottom: 1rem;
}

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

.guide-card {
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 200ms, box-shadow 200ms;
}

.guide-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
}

.guide-card h3 {
  margin-top: 0;
}

.guide-card a {
  color: var(--c-text);
}

.guide-card p {
  color: var(--c-muted);
  margin-bottom: 1.5rem;
}

.faq-item {
  background: white;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: box-shadow 200ms;
}

.faq-item:hover {
  box-shadow: var(--shadow);
}

.faq-item summary {
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--c-text);
  font-size: 1.05rem;
}

.faq-item summary:hover {
  color: var(--c-primary);
}

.fa-chevron-down {
  transition: transform 200ms;
  font-size: 1rem;
}

.faq-item[open] .fa-chevron-down {
  transform: rotate(180deg);
}

.faq-item p {
  margin-top: 1rem;
  color: var(--c-muted);
  line-height: 1.8;
}

.cta-section {
  text-align: center;
}

.cta-section h2 {
  margin-bottom: 0.5em;
}

.cta-section p {
  font-size: 1.1rem;
  color: var(--c-muted);
  margin-bottom: 2rem;
}

.risk-strip {
  background-color: #fdf2f0;
  border-left: 4px solid var(--c-primary);
  padding: 1.5rem;
  border-radius: var(--radius);
  color: var(--c-text);
  line-height: 1.8;
}

.footer-section {
  background-color: var(--c-dark);
  color: white;
  padding: var(--spacing-rhythm) 0 2rem;
  margin-top: 4rem;
}

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

.footer-col h3, .footer-col h4 {
  color: white;
  margin-top: 0;
}

.footer-col a {
  color: rgba(255,255,255,.8);
}

.footer-col a:hover {
  color: white;
}

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

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,.7);
}

.breadcrumb {
  margin-bottom: 2rem;
  font-size: 0.95rem;
  color: var(--c-muted);
}

.breadcrumb a {
  color: var(--c-primary);
}

.brand-profile {
  text-align: center;
  margin: 2rem 0;
  padding: 1.5rem;
  background-color: var(--c-bg-soft);
  border-radius: var(--radius);
}

.brand-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: contain;
  margin-bottom: 1rem;
}

.brand-caption {
  font-size: 0.95rem;
  color: var(--c-muted);
}

.brand-caption a {
  color: var(--c-primary);
}

.inline-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  margin-right: 4px;
  vertical-align: middle;
}

.byline {
  font-size: 0.9rem;
  color: var(--c-muted);
  margin-bottom: 1.5rem;
}

.byline i {
  margin-right: 4px;
}

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

.article-content h2 {
  margin-top: 2em;
}

.article-content h3 {
  margin-top: 1.5em;
  font-size: 1.25rem;
}

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

.article-content table th {
  background-color: var(--c-primary);
  color: white;
  padding: 12px;
  text-align: left;
  font-weight: 600;
}

.article-content table td {
  padding: 12px;
  border-bottom: 1px solid var(--c-border);
}

.article-content table tr:hover {
  background-color: var(--c-bg-soft);
}

.article-content ul {
  list-style: none;
  margin: 1.5rem 0;
}

.article-content li {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.article-content ol {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

.article-content ol li {
  margin-bottom: 0.75rem;
}

.error-section {
  text-align: center;
  padding: 4rem 0;
}

.error-section h1 {
  color: var(--c-primary);
  margin-bottom: 1rem;
}

.error-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--c-text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--c-text);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(201,123,99,.1);
}

.contact-info {
  background-color: var(--c-bg-soft);
  padding: 2rem;
  border-radius: var(--radius);
  margin-top: 2rem;
}

@media (max-width: 768px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }

  .burger-menu {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 60px;
    right: 0;
    left: 0;
    background: var(--c-bg);
    border-bottom: 1px solid var(--c-border);
    padding: 2rem;
    gap: 0;
    flex-direction: column;
    display: none;
  }

  .nav-menu.open {
    display: flex;
  }

  .hero-buttons {
    gap: 0.75rem;
  }

  .btn-primary, .btn-secondary {
    padding: 10px 16px;
    font-size: 0.95rem;
  }

  .comparison-table {
    font-size: 0.85rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 12px 8px;
  }

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

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

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

  .section {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .editor-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .error-actions {
    gap: 0.5rem;
  }

  .container {
    padding: 0 16px;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.1rem; }

  .btn-primary, .btn-secondary {
    padding: 10px 14px;
    font-size: 0.9rem;
    width: 100%;
  }

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

  .hero-chips {
    flex-direction: column;
  }

  .chip {
    width: 100%;
    text-align: center;
  }

  .comparison-table {
    font-size: 0.75rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 8px 4px;
  }

  .methodology-num {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  .article-content table {
    font-size: 0.85rem;
  }

  .article-content table th,
  .article-content table td {
    padding: 8px;
  }

  .contact-form {
    width: 100%;
  }
}
