:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f5;
  --text: #141414;
  --text-muted: #5c5c5c;
  --accent: #111111;
  --accent-soft: #e6e6e6;
  --border: #dcdcdc;
  --radius: 20px;
  --shadow: 0 18px 40px -24px rgba(17, 17, 17, 0.35);
  color-scheme: light;
  font-size: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg-soft), var(--bg));
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 6vw;
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(16px);
}

.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand__mark { height: 40px; width: 40px; border-radius: 12px; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.brand__tag { font-size: 0.75rem; color: var(--text-muted); }

.nav-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.tab {
  border: none;
  border-radius: 999px;
  padding: 0.55rem 1.4rem;
  background: var(--accent-soft);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}
.tab[aria-pressed="true"], .tab:focus-visible {
  background: var(--accent);
  color: #fff;
  outline: none;
}
.tab:hover { transform: translateY(-1px); }

.hero {
  position: relative;
  height: clamp(280px, 38vw, 360px);
  overflow: hidden;
  margin-bottom: 2.5rem;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.55), rgba(5, 5, 5, 0.65));
  padding: 0 1.5rem;
}
.hero__title { font-size: clamp(2.2rem, 5vw, 3.5rem); margin: 0; }
.hero__subtitle { margin-top: 0.75rem; font-size: clamp(1rem, 2vw, 1.35rem); color: rgba(255,255,255,0.85); }

.layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
  padding: 0 6vw 4rem;
}

.panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.panel__header h2 {
  margin: 0;
  font-size: 1.25rem;
}

.panel__header p {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.panel__form {
  display: grid;
  gap: 0.9rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field__label {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

input[type="text"] {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.7rem 0.95rem;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.15);
}

.checkbox { display: inline-flex; align-items: center; gap: 0.55rem; font-size: 0.9rem; color: var(--text-muted); }
.checkbox input { width: 1.1rem; height: 1.1rem; }

.btn {
  border: none;
  border-radius: 14px;
  padding: 0.75rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  justify-self: start;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 24px -20px rgba(0,0,0,0.8); }
.btn:focus-visible { outline: 2px solid #000; outline-offset: 3px; }

.panel__results {
  display: grid;
  gap: 0.75rem;
}

.result-card {
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 16px;
  padding: 1rem;
  background: rgba(249, 249, 249, 0.8);
}

.result-card__meta {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.result-card__title {
  font-weight: 600;
  margin: 0;
}

.result-card__body { margin: 0.35rem 0 0; line-height: 1.55; }

.compare-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.compare-item {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  background: rgba(249, 249, 249, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.compare-item__tradition {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.compare-item__stance {
  margin: 0;
  line-height: 1.6;
}

.compare-item__refs {
  margin: 0.6rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  word-break: break-word;
}

.footer {
  padding: 2.5rem 6vw 3rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.footer__note { margin-top: 0.45rem; }

@media (max-width: 720px) {
  .navbar { flex-direction: column; gap: 1rem; align-items: flex-start; }
  .layout { grid-template-columns: 1fr; padding: 0 1.25rem 3rem; }
  .hero__overlay { padding: 0 1rem; }
}
