:root {
  --ink: #18201c;
  --muted: #647069;
  --paper: #f6f1e4;
  --surface: #fffdf7;
  --line: rgba(24, 32, 28, 0.12);
  --green: #0f6b4f;
  --green-dark: #0a4a38;
  --mint: #d8f6df;
  --gold: #eeb94e;
  --clay: #c75f3c;
  --blue: #2563eb;
  --shadow: 0 24px 64px rgba(24, 32, 28, 0.13);
  --radius: 20px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(15, 107, 79, 0.16), transparent 28%),
    radial-gradient(circle at 86% 5%, rgba(238, 185, 78, 0.28), transparent 30%),
    linear-gradient(135deg, #fbf4df 0%, #eef7ee 52%, #f7e8df 100%);
  font-family: "Aptos", "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: var(--green-dark);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

code {
  background: rgba(15, 107, 79, 0.11);
  border-radius: 7px;
  color: var(--green-dark);
  padding: 0.08rem 0.32rem;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  background: rgba(246, 241, 228, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(24, 32, 28, 0.08);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav {
  align-items: center;
  display: flex;
  gap: 22px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--max);
  padding: 16px 22px;
}

.brand {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  font-weight: 900;
  gap: 10px;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--mint);
  border: 2px solid var(--ink);
  border-radius: 13px;
  box-shadow: 4px 4px 0 var(--ink);
  display: inline-flex;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.nav-links,
.footer-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.nav-links a,
.footer-links a {
  color: var(--muted);
  font-size: 0.94rem;
  text-decoration: none;
}

.nav-links a:hover,
.footer-links a:hover {
  color: var(--ink);
}

.page-shell {
  margin: 0 auto;
  max-width: var(--max);
  padding: 32px 22px 60px;
}

.tool-intro {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  margin: 24px 0;
}

.eyebrow {
  color: var(--clay);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.intro-copy h1 {
  font-size: clamp(2.35rem, 5vw, 5rem);
  letter-spacing: -0.075em;
  line-height: 0.94;
  margin: 0 0 18px;
  max-width: 850px;
}

.intro-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0;
  max-width: 760px;
}

.intro-actions,
.actions,
.resource-actions,
.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.privacy-note {
  align-self: end;
  background: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: rgba(255, 255, 255, 0.78);
  padding: 20px;
}

.privacy-note strong {
  color: var(--mint);
  display: block;
  margin-bottom: 6px;
}

.tool-grid {
  align-items: stretch;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(320px, 440px) minmax(0, 1fr);
}

.panel {
  background: rgba(255, 253, 247, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.controls,
.result-panel {
  padding: 18px;
}

.control-stack {
  display: grid;
  gap: 16px;
}

.control {
  display: grid;
  gap: 8px;
}

.control label {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 900;
}

input,
select {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  min-height: 46px;
  padding: 10px 12px;
  width: 100%;
}

input:focus,
select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(15, 107, 79, 0.12);
  outline: none;
}

.field-help {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
  margin: 0;
}

.split {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}

.btn {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 46px;
  padding: 10px 15px;
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--green);
  box-shadow: 0 13px 24px rgba(15, 107, 79, 0.22);
  color: #fff;
}

.btn-primary:hover {
  background: var(--green-dark);
}

.btn-secondary {
  background: var(--mint);
  border-color: var(--ink);
  color: var(--ink);
}

.btn-ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.result-panel {
  display: grid;
  gap: 16px;
}

.result-hero {
  background:
    linear-gradient(135deg, rgba(15, 107, 79, 0.1), rgba(238, 185, 78, 0.12)),
    #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.result-hero span {
  color: var(--muted);
  display: block;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.result-hero strong {
  display: block;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  letter-spacing: -0.07em;
  line-height: 1;
  margin: 10px 0;
}

.result-hero p {
  color: var(--muted);
  margin: 0;
}

.metric-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}

.metric-card span {
  color: var(--muted);
  display: block;
  font-size: 0.86rem;
  font-weight: 800;
}

.metric-card strong {
  display: block;
  font-size: 1.5rem;
  margin-top: 6px;
}

.comparison-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.preview-topbar {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 14px 16px;
}

.file-meta {
  color: var(--muted);
  font-size: 0.88rem;
}

.comparison-grid,
.source-grid,
.feature-grid,
.faq-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.comparison-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 14px;
}

.comparison-card,
.source-card,
.feature,
.faq-item {
  background: rgba(255, 253, 247, 0.82);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}

.comparison-card.is-active {
  border-color: var(--green);
  box-shadow: inset 0 0 0 2px rgba(15, 107, 79, 0.16);
}

.comparison-card > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.comparison-card span,
.source-card p,
.feature p,
.faq-item p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

.comparison-card dl {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
}

.comparison-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.comparison-card dt,
.comparison-card dd {
  margin: 0;
}

.comparison-card dt {
  color: var(--muted);
}

.comparison-card dd {
  font-weight: 900;
}

.seo-section {
  margin-top: 56px;
}

.seo-section h2 {
  font-size: clamp(1.75rem, 3vw, 2.65rem);
  letter-spacing: -0.045em;
  line-height: 1.04;
  margin: 0 0 14px;
}

.seo-section > p {
  color: var(--muted);
  max-width: 860px;
}

.feature-grid,
.faq-grid,
.source-grid {
  margin-top: 18px;
}

.feature h3,
.faq-item h3,
.source-card h3 {
  font-size: 1.03rem;
  margin: 0 0 8px;
}

.source-card a {
  display: inline-flex;
  font-weight: 900;
  margin-top: 14px;
  text-decoration: none;
}

.resource-grid,
.related-grid,
.check-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 20px;
}

.related-grid,
.check-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.resource-card,
.related-card,
.check-card {
  background: rgba(255, 253, 247, 0.9);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}

.resource-card h3,
.related-card h3,
.check-card h3 {
  font-size: 1.04rem;
  margin: 0 0 8px;
}

.resource-card p,
.related-card p,
.check-card p,
.page-summary li {
  color: var(--muted);
}

.resource-kicker {
  color: var(--clay);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.text-link {
  font-weight: 900;
  text-decoration: none;
}

.content-page {
  background: rgba(255, 253, 247, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: 28px;
  padding: 28px;
}

.content-page h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.055em;
  margin: 0 0 18px;
}

.content-page h2 {
  margin-top: 28px;
}

.content-page p,
.content-page li {
  color: var(--muted);
}

.crumbs {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.9rem;
  margin-bottom: 22px;
}

.crumbs a {
  font-weight: 900;
  text-decoration: none;
}

.page-hero {
  align-items: stretch;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 340px);
}

.page-summary,
.callout {
  background: var(--ink);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.82);
  padding: 20px;
}

.page-summary h2 {
  color: var(--mint);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.page-summary ul {
  margin: 0;
  padding-left: 1.1rem;
}

.page-summary li {
  color: rgba(255, 255, 255, 0.82);
  margin: 8px 0;
}

.callout {
  background: var(--mint);
  border: 1px solid var(--ink);
  color: var(--ink);
  font-weight: 800;
  margin-top: 14px;
}

.site-footer {
  border-top: 1px solid rgba(24, 32, 28, 0.1);
  color: var(--muted);
  margin-top: 48px;
  padding: 22px;
}

.footer-inner {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--max);
}

@media (max-width: 980px) {
  .tool-intro,
  .tool-grid,
  .feature-grid,
  .faq-grid,
  .source-grid,
  .resource-grid,
  .related-grid,
  .check-grid,
  .page-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .nav,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .split,
  .metric-grid,
  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .page-shell {
    padding-inline: 14px;
  }

  .controls,
  .result-panel,
  .content-page {
    padding: 14px;
  }

  .intro-actions,
  .actions {
    flex-direction: column;
  }
}
