:root {
  --color-ink: #182128;
  --color-muted: #5f6d75;
  --color-bg: #fbfcf8;
  --color-surface: #ffffff;
  --color-line: #dce4df;
  --color-primary: #0f6b5d;
  --color-primary-strong: #084d44;
  --color-accent: #d95f2f;
  --color-accent-soft: #fff1e9;
  --color-blue: #295f98;
  --color-green-soft: #e9f5ef;
  --shadow-soft: 0 18px 45px rgba(24, 33, 40, 0.08);
  --radius: 8px;
  --container: 1120px;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(217, 95, 47, 0.55);
  outline-offset: 4px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.08;
}

h1 {
  max-width: 720px;
  margin-bottom: 20px;
  font-size: clamp(2.5rem, 7vw, 5.9rem);
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.16rem;
}

p {
  color: var(--color-muted);
}

.sr-only,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  z-index: 100;
  width: auto;
  height: auto;
  margin: 12px;
  padding: 10px 14px;
  overflow: visible;
  clip: auto;
  border-radius: var(--radius);
  background: var(--color-ink);
  color: #fff;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(220, 228, 223, 0.9);
  background: rgba(251, 252, 248, 0.92);
  backdrop-filter: blur(14px);
}

.nav {
  display: flex;
  width: min(100% - 32px, var(--container));
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  margin-inline: auto;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--color-primary);
  color: #fff;
  font-size: 0.92rem;
  letter-spacing: 0;
}

.brand-name,
.brand-tagline {
  display: block;
}

.brand-name {
  color: var(--color-ink);
  font-size: 1.08rem;
}

.brand-tagline {
  color: var(--color-muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-menu a {
  border-radius: var(--radius);
  color: var(--color-muted);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 10px 12px;
}

.nav-menu a:hover {
  background: var(--color-green-soft);
  color: var(--color-primary-strong);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-surface);
  cursor: pointer;
}

.nav-toggle-line {
  position: absolute;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-ink);
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle-line:nth-child(2) {
  transform: translateY(-6px);
}

.nav-toggle-line:nth-child(4) {
  transform: translateY(6px);
}

.nav-open .nav-toggle-line:nth-child(2) {
  transform: rotate(45deg);
}

.nav-open .nav-toggle-line:nth-child(3) {
  opacity: 0;
}

.nav-open .nav-toggle-line:nth-child(4) {
  transform: rotate(-45deg);
}

.section,
.section-band {
  padding: 82px 0;
}

.section-band {
  border-bottom: 1px solid var(--color-line);
}

.section-muted {
  background: #eef5f0;
}

.section-accent {
  background: var(--color-ink);
  color: #fff;
}

.section-accent p,
.section-accent .eyebrow {
  color: rgba(255, 255, 255, 0.76);
}

.hero {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1.16fr) minmax(320px, 0.84fr);
  gap: 52px;
}

.eyebrow,
.card-kicker {
  margin-bottom: 12px;
  color: var(--color-primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-lede {
  max-width: 660px;
  margin-bottom: 28px;
  color: #44535c;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  padding: 12px 18px;
}

.button-primary {
  background: var(--color-accent);
  color: #fff;
}

.button-primary:hover {
  background: #bd4f27;
}

.button-secondary {
  border-color: var(--color-line);
  background: var(--color-surface);
  color: var(--color-ink);
}

.button-secondary:hover {
  border-color: #b8c8c0;
  background: #f5faf7;
}

.button-on-dark {
  border-color: rgba(255, 255, 255, 0.34);
  background: transparent;
  color: #fff;
}

.button-on-dark:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.hero-panel {
  margin: 0;
}

.mini-report {
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
  padding: 24px;
}

.mini-report-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  color: var(--color-muted);
  font-weight: 800;
}

.mini-report-header strong {
  border-radius: 999px;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  font-size: 0.78rem;
  padding: 6px 10px;
}

.product-spotlight {
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  background: #f6fbf8;
}

.product-spotlight-grid {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
}

.product-spotlight h2 {
  max-width: 720px;
}

.product-spotlight p {
  max-width: 780px;
  margin-bottom: 0;
}

.product-spotlight-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.metric-list {
  display: grid;
  gap: 12px;
  margin: 0 0 20px;
}

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

.metric-list dt {
  color: var(--color-muted);
  font-weight: 700;
}

.metric-list dd {
  margin: 0;
  color: var(--color-ink);
  font-size: 1.5rem;
  font-weight: 900;
}

.section-heading {
  max-width: 740px;
  margin-bottom: 32px;
}

.compact-heading {
  margin-bottom: 0;
}

.calculator-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.calculator-card {
  display: flex;
  min-height: 238px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-surface);
  padding: 24px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.calculator-card:hover {
  border-color: rgba(15, 107, 93, 0.45);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.calculator-card p {
  margin-bottom: 0;
}

.featured-card {
  grid-column: span 2;
  background: #f9fffb;
}

.split-layout,
.ai-layout {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 42px;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-list article {
  border-left: 3px solid var(--color-primary);
  background: rgba(255, 255, 255, 0.62);
  padding: 18px 18px 12px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.steps li {
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-surface);
  padding: 24px;
}

.step-number {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: var(--radius);
  background: var(--color-blue);
  color: #fff;
  font-weight: 900;
}

.ai-layout {
  align-items: center;
}

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

.advisor-points a {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 800;
  padding: 18px;
}

.advisor-points a:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.14);
}

.advisor-points small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.86rem;
  font-weight: 700;
}

.faq-grid {
  display: grid;
  gap: 12px;
}

.content-page .section-heading {
  max-width: 820px;
}

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

.info-card {
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
  padding: 22px;
}

.info-card h2 {
  font-size: 1.3rem;
}

.info-card p:last-child {
  margin-bottom: 0;
}

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

.tool-panel {
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
  padding: 22px;
}

.tool-field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--color-ink);
  font-weight: 800;
}

.tool-field small {
  color: var(--color-muted);
  font-weight: 700;
}

.file-upload-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.file-upload-row input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.file-upload-row .button {
  cursor: pointer;
}

.file-upload-row small {
  overflow-wrap: anywhere;
}

.tool-field textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  color: var(--color-ink);
  font: inherit;
  padding: 12px;
}

.tool-field textarea:focus {
  border-color: var(--color-primary);
  outline: 3px solid rgba(15, 107, 93, 0.16);
}

.tool-status,
.empty-state p {
  margin: 14px 0 0;
}

.score-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid var(--color-line);
  margin-bottom: 18px;
  padding-bottom: 18px;
}

.score-card span {
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  border-radius: 50%;
  background: var(--color-green-soft);
  color: var(--color-primary-strong);
  font-size: 2rem;
  font-weight: 950;
}

.score-card h2,
.tool-section h2 {
  font-size: 1.25rem;
}

.tool-section {
  margin-top: 18px;
}

.tool-section ul,
.check-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.check-list {
  padding-left: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 8px;
  align-items: center;
}

.check-list span {
  min-width: 44px;
  border-radius: var(--radius);
  font-size: 0.74rem;
  font-weight: 900;
  padding: 3px 7px;
  text-align: center;
}

.check-list .is-pass span {
  background: var(--color-green-soft);
  color: var(--color-primary-strong);
}

.check-list .is-warn span {
  background: var(--color-accent-soft);
  color: var(--color-accent);
}

details {
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-surface);
  padding: 18px 20px;
}

summary {
  cursor: pointer;
  font-weight: 850;
}

details p {
  margin: 12px 0 0;
}

.site-footer {
  border-top: 1px solid var(--color-line);
  background: var(--color-surface);
  padding: 34px 0;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

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

.footer-links a {
  color: var(--color-muted);
  font-weight: 750;
}

.footer-links a:hover {
  color: var(--color-primary);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
    position: relative;
  }

  .nav-menu {
    position: fixed;
    inset: 72px 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border-bottom: 1px solid var(--color-line);
    background: var(--color-surface);
    padding: 14px 16px 20px;
    box-shadow: var(--shadow-soft);
  }

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

  .nav-menu a {
    padding: 14px 12px;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid,
  .split-layout,
  .ai-layout,
  .product-spotlight-grid,
  .tool-layout {
    grid-template-columns: 1fr;
  }

  .product-spotlight-actions {
    justify-content: flex-start;
  }

  .calculator-grid,
  .feature-list,
  .steps,
  .content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-card {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .container,
  .nav {
    width: min(100% - 24px, var(--container));
  }

  .section,
  .section-band {
    padding: 58px 0;
  }

  .hero-grid {
    gap: 32px;
  }

  .hero-actions,
  .footer-grid {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .calculator-grid,
  .feature-list,
  .steps,
  .advisor-points,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .featured-card {
    grid-column: auto;
  }

  .calculator-card {
    min-height: 210px;
  }

  .mini-report {
    padding: 18px;
  }

  .metric-list dd {
    font-size: 1.2rem;
  }
}
