:root {
  --seo-text: #111111;
  --seo-muted: #4b5563;
  --seo-line: #e5e7eb;
  --seo-soft: #f8faf8;
  --seo-accent: #0f5132;
  --seo-maxw: 1100px;
}

.seo-page-link {
  color: var(--seo-accent);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.25em;
}

.seo-page-link:hover,
.seo-page-link:focus-visible {
  background-color: rgba(15, 107, 40, 0.1);
}

body.seo-page {
  min-height: 100vh;
  background: #ffffff;
  color: var(--seo-text);
}

.seo-shell {
  width: min(var(--seo-maxw), calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 10px;
}

.seo-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 0 18px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--seo-line);
}

.seo-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--seo-text);
  text-decoration: none;
}

.seo-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.seo-brand strong {
  font-size: 0.92rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.seo-brand-tagline {
  padding-left: 12px;
  border-left: 1px solid var(--seo-line);
  color: var(--seo-muted);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0;
}

.seo-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(15, 81, 50, 0.28);
  border-radius: 999px;
  background: #ffffff;
  color: var(--seo-accent);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.seo-header-cta:hover,
.seo-header-cta:focus-visible {
  border-color: var(--seo-accent);
  background: rgba(15, 81, 50, 0.06);
  color: #0b3d26;
}

.seo-hero,
.seo-stack {
  display: block;
}

.seo-card,
.seo-panel,
.seo-section,
.seo-faq,
.seo-cta {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.seo-card {
  margin-bottom: 16px;
}

.seo-panel,
.seo-section,
.seo-faq,
.seo-cta {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--seo-line);
}

.seo-eyebrow,
.seo-kicker {
  display: inline-block;
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--seo-accent);
}

.seo-card h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.08;
  margin: 0 0 18px;
  letter-spacing: -0.03em;
}

.seo-lead {
  max-width: none;
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--seo-muted);
}

.seo-note,
.seo-footer,
.seo-visual-caption {
  margin-top: 14px;
  font-size: 0.96rem;
  line-height: 1.7;
  color: var(--seo-muted);
}

.seo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.seo-actions .btn {
  border-radius: 10px;
  padding: 11px 15px;
}

.seo-actions .btn.outline {
  background: transparent;
}

.seo-stat-row,
.seo-visual-shell,
.seo-panel-callout {
  margin-top: 20px;
}

.seo-stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.seo-how-hero-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 230px);
  gap: 24px;
  align-items: center;
}

.seo-how-hero-illustration {
  margin: 0;
}

.seo-how-hero-illustration img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

.seo-stat-chip,
.seo-panel-callout,
.seo-example-result {
  padding: 16px 18px;
  border: 1px solid var(--seo-line);
  border-radius: 12px;
  background: var(--seo-soft);
}

.seo-stat-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--seo-muted);
}

.seo-stat-chip strong,
.seo-panel-callout strong,
.seo-example-result strong {
  display: block;
  font-size: 1rem;
  line-height: 1.5;
}

.seo-panel ul,
.seo-section ul {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--seo-muted);
  line-height: 1.8;
}

.seo-panel li,
.seo-section li {
  margin-bottom: 8px;
}

.seo-panel h2,
.seo-section h2,
.seo-faq h2,
.seo-cta h2 {
  margin: 0 0 14px;
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.seo-section p,
.seo-faq p,
.seo-cta p,
.seo-mini-card p {
  margin: 0 0 14px;
  color: var(--seo-muted);
  line-height: 1.8;
}

.seo-grid,
.seo-grid-four,
.seo-example-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.seo-mini-card,
.seo-problem-card {
  padding: 18px;
  border: 1px solid var(--seo-line);
  border-radius: 12px;
  background: #ffffff;
}

.seo-mini-card h3,
.seo-problem-card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  line-height: 1.35;
}

.seo-section-heading {
  margin-bottom: 10px;
}

.seo-example-result {
  margin-top: 18px;
  background: #f3f7f3;
}

.seo-faq-item+.seo-faq-item {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--seo-line);
}

.seo-how-page .seo-how-complex-section {
  padding-bottom: 32px;
}

.seo-how-page .seo-how-complex-section .ps-section-header {
  margin-bottom: 18px;
}

.seo-how-page .seo-how-complex-section + .seo-faq {
  margin-top: 56px;
}

.seo-visual-panel {
  margin-top: 0;
}

.seo-visual-shell {
  position: relative;
  min-height: 180px;
  border: 1px solid var(--seo-line);
  border-radius: 12px;
  background:
    linear-gradient(rgba(15, 81, 50, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 81, 50, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
}

.seo-core-node,
.seo-node {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid var(--seo-line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--seo-text);
  font-size: 0.92rem;
  line-height: 1.3;
}

.seo-core-node {
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  font-weight: 700;
}

.seo-node-a {
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
}

.seo-node-b {
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
}

.seo-node-c {
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
}

.seo-node-d {
  top: 50%;
  left: 18px;
  transform: translateY(-50%);
}

.seo-orbit {
  position: absolute;
  inset: 50% auto auto 50%;
  border: 1px dashed #cbd5e1;
  border-radius: 999px;
  transform: translate(-50%, -50%);
}

.seo-orbit-a {
  width: 124px;
  height: 124px;
}

.seo-orbit-b {
  width: 180px;
  height: 180px;
}

.diet-sim {
  padding-top: 28px;
}

.diet-title,
.diet-subtitle {
  text-align: center;
}

.diet-subtitle {
  margin-bottom: 28px;
}

.diet-auto-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 16px;
  padding: 10px 18px;
  border: 2px solid #395744;
  background: #0b6118;
  color: #fff;
  border-radius: 10px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.diet-auto-btn:hover {
  background: #0e7720;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  transform: translateY(-2px);
}

.diet-food-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.diet-food-list label {
  background: #fff;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid #395744;
  transition: all 0.25s ease;
}

.diet-food-list label:hover {
  background: #d0e4d3;
  border-color: #000;
}

.diet-food-list label:has(input:checked) {
  background: #badfc0;
}

.diet-food-list input[type="checkbox"] {
  transform: scale(1.4);
  accent-color: var(--seo-accent);
}

.diet-link {
  color: inherit;
  font-style: italic;
  font-weight: 600;
  text-decoration: none;
}

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

.diet-chart-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.diet-chart-container canvas {
  width: 100% !important;
  height: auto !important;
}

.diet-stats {
  display: flex;
  gap: 20px;
  margin: 25px 0;
  flex-wrap: wrap;
}

.diet-stat-box {
  flex: 1;
  background: #f7fcf7;
  border-radius: 14px;
  padding: 20px 16px 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid #d6e4d6;
}

.diet-stat-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

.diet-stat-box h3 {
  margin: 0;
  font-size: 1.35rem;
  color: var(--seo-accent);
}

.diet-stat-box p,
.diet-info-text {
  color: var(--seo-muted);
}

.diet-info-text {
  font-size: 1.05rem;
  line-height: 1.8;
}

.lang-switch {
  margin-bottom: 12px;
  line-height: 1.7;
}

.lang-current {
  color: #111827;
  font-weight: 700;
}

.lang-option {
  color: var(--seo-muted);
  text-decoration: none;
  font-weight: 600;
}

.lang-option:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .seo-shell {
    width: min(var(--seo-maxw), calc(100% - 28px));
  }

  .seo-how-hero-intro {
    grid-template-columns: 1fr;
  }

  .seo-how-hero-illustration {
    display: none;
  }

  .seo-stat-row,
  .seo-grid,
  .seo-grid-four,
  .seo-example-grid {
    grid-template-columns: 1fr;
  }

  .diet-food-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .seo-shell {
    width: calc(100% - 24px);
    padding: 20px 0 48px;
  }

  .seo-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .seo-topbar--cta {
    flex-direction: row;
    align-items: center;
  }

  .seo-topbar--cta .seo-brand {
    flex: 0 0 auto;
  }

  .seo-topbar--cta .seo-header-cta {
    min-height: 38px;
    max-width: 180px;
    padding: 0 12px;
    font-size: 0.82rem;
  }

  .seo-actions .btn {
    width: 100%;
  }

  .diet-food-list {
    grid-template-columns: 1fr;
  }

  .diet-stat-box {
    flex: 1 1 100%;
  }

  .seo-orbit-a {
    width: 110px;
    height: 110px;
  }

  .seo-orbit-b {
    width: 160px;
    height: 160px;
  }
}
