:root {
  --bg: #f3efe6;
  --surface: rgba(255, 255, 255, 0.8);
  --surface-strong: #ffffff;
  --text: #17231c;
  --muted: #536158;
  --line: rgba(23, 35, 28, 0.12);
  --brand: #163a31;
  --brand-soft: #dce7df;
  --accent: #c95d22;
  --accent-soft: #f7dccf;
  --shadow: 0 24px 60px rgba(22, 58, 49, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(201, 93, 34, 0.16), transparent 30%),
    radial-gradient(circle at top left, rgba(22, 58, 49, 0.1), transparent 30%),
    var(--bg);
  color: var(--text);
  font-family: "Manrope", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 80px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--brand);
  color: #f7f5ef;
  letter-spacing: 0.04em;
}

.nav {
  display: inline-flex;
  gap: 24px;
  color: var(--muted);
  font-size: 0.96rem;
}

.nav a:hover,
.tool-card a:hover {
  color: var(--accent);
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: stretch;
  padding: 48px 0 24px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.section h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.02;
}

.hero h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 7vw, 5.6rem);
}

.hero-text,
.section-heading p,
.compare-card p,
.faq-list p,
.cta-card p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.02rem;
}

.hero-text {
  max-width: 60ch;
  margin: 22px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--brand);
  color: #f7f5ef;
  box-shadow: var(--shadow);
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-points li,
.launch-steps span,
.tag-grid span {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--muted);
  font-size: 0.94rem;
}

.hero-panel {
  display: grid;
  gap: 18px;
}

.panel-card,
.tool-card,
.compare-card,
.cta-card,
.guide-grid article,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.panel-card {
  padding: 24px;
}

.panel-accent {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 220, 207, 0.68)),
    var(--surface);
}

.panel-muted {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(220, 231, 223, 0.7)),
    var(--surface);
}

.panel-label,
.tool-kicker {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-card h2 {
  margin: 0 0 18px;
  font-size: 1.5rem;
}

.calc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.calc-row-highlight strong {
  color: var(--accent);
}

.panel-note {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.section {
  padding: 56px 0 0;
}

.section-heading {
  max-width: 62ch;
  margin-bottom: 26px;
}

.section h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}

.tool-card {
  padding: 22px;
}

.tool-card h3,
.compare-card h3,
.guide-grid h3 {
  margin: 0 0 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.35rem;
}

.tool-card p,
.tool-card a,
.guide-grid li {
  color: var(--muted);
  line-height: 1.65;
}

.tool-card a {
  display: inline-flex;
  margin-top: 16px;
  font-weight: 700;
}

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

.compare-card,
.guide-grid article,
.cta-card {
  padding: 26px;
}

.formula {
  margin: 18px 0;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--brand-soft);
  color: var(--brand);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.compare-card ul,
.guide-grid ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.cta-section {
  padding-top: 70px;
}

.cta-card {
  background:
    linear-gradient(135deg, rgba(22, 58, 49, 0.98), rgba(24, 73, 60, 0.94)),
    var(--brand);
  color: #f7f5ef;
}

.cta-card p,
.cta-card .eyebrow {
  color: rgba(247, 245, 239, 0.82);
}

.launch-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.launch-steps span {
  border-color: rgba(247, 245, 239, 0.16);
  background: rgba(247, 245, 239, 0.08);
  color: #f7f5ef;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-list details {
  padding: 20px 22px;
}

.faq-list summary {
  cursor: pointer;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
}

.faq-list p {
  margin: 14px 0 0;
}

.footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 56px 0 12px;
  color: var(--muted);
}

.footer p {
  margin: 8px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.tool-page {
  padding-top: 22px;
}

.tool-hero {
  padding: 20px 0 8px;
}

.tool-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.tool-meta li {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--muted);
  font-size: 0.94rem;
}

.tool-copy h1 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 1.02;
}

.tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 22px;
  align-items: start;
}

.tool-surface,
.result-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.tool-surface {
  padding: 26px;
}

.tool-surface-heading {
  display: grid;
  gap: 8px;
}

.tool-surface-heading h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
}

.surface-lead {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.result-card {
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 220, 207, 0.68)),
    var(--surface);
  position: sticky;
  top: 20px;
}

.calculator-form {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.form-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.calculator-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.calculator-form input,
.calculator-form select {
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  font: inherit;
}

.field-hint {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.preset-panel {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.48);
}

.preset-panel p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.preset-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.preset-button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  font: inherit;
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.preset-button:hover {
  transform: translateY(-1px);
  border-color: rgba(22, 58, 49, 0.28);
}

.preset-button.is-active {
  border-color: transparent;
  background: var(--brand);
  color: #f7f5ef;
}

.result-eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result-card h2 {
  margin: 0 0 18px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.3rem);
}

.result-summary {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.7;
}

.result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.section-copy {
  max-width: 62ch;
  color: var(--muted);
  line-height: 1.7;
}

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

.insight-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow);
}

.insight-card h3 {
  margin: 0 0 12px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.35rem;
}

.insight-card p,
.insight-card li {
  color: var(--muted);
  line-height: 1.7;
}

.insight-card ul {
  margin: 0;
  padding-left: 18px;
}

@media (max-width: 1080px) {
  .hero,
  .tool-layout,
  .compare-grid,
  .guide-grid,
  .insight-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 24px, 100%);
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .nav {
    flex-wrap: wrap;
    gap: 14px;
  }

  .footer {
    flex-direction: column;
  }

  .hero {
    padding-top: 28px;
  }

  .hero h1 {
    max-width: 9ch;
  }

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

  .button,
  .hero-actions {
    width: 100%;
  }

  .button {
    justify-content: center;
  }

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

  .result-card {
    position: static;
  }
}
