:root {
  --bg: #F6F5F0;
  --surface: #FFFFFF;
  --surface-tint: #EFECE3;
  --ink: #0B1314;
  --ink-2: #2F3E40;
  --muted: #516162;
  --line: #DDD8CC;
  --line-strong: #B5AFA2;
  --field-border: #767E7D;
  --accent: #0F5C54;
  --accent-hover: #0A4640;
  --accent-soft: #E5F3F0;
  --amber-bg: #FDF4E2;
  --amber-ink: #824906;
  --amber-border: #E2BE7D;
  --green-bg: #E7F5EB;
  --green-ink: #155B2F;
  --green-border: #9FD4AF;
  --rose-bg: #FCEBEC;
  --rose-ink: #94222D;
  --rose-border: #E5A9B0;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(11, 19, 20, 0.06);
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--ink);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--surface);
  padding: 10px 16px;
  z-index: 100;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

.wrap {
  width: min(1140px, 100% - 40px);
  margin: 0 auto;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.sep {
  display: inline-block;
  margin: 0 0.3em;
  color: var(--muted);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(246, 245, 240, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

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

.brand-mark {
  height: 22px;
  width: auto;
  display: block;
  padding: 2px;
}

.brand-name {
  font-size: 18px;
}

.brand-divider {
  color: var(--line-strong);
  font-weight: 400;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-actions .mobile-cta {
  display: none;
  white-space: nowrap;
  padding: 6px 11px;
  font-size: 13.5px;
}

.nav-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--field-border);
  border-radius: 6px;
  color: var(--ink);
  min-height: 36px;
  padding: 6px 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.mobile-nav {
  display: grid;
  gap: 4px;
  padding: 12px 20px 16px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 10px 0;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}

.mobile-nav a:last-child {
  border-bottom: 0;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  min-height: 44px;
  border-radius: 7px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-sm {
  min-height: 36px;
  padding: 7px 14px;
  font-size: 14px;
}

.btn-full {
  width: 100%;
}

.btn-primary {
  background: var(--accent);
  color: #FFFFFF;
}

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

.btn-primary:disabled {
  opacity: 0.65;
  cursor: wait;
}

.btn-outline {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--field-border);
}

.btn-outline:hover {
  border-color: var(--ink);
  background: var(--bg);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  padding-left: 4px;
  padding-right: 4px;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--field-border);
}

.btn-ghost:hover {
  text-decoration-color: var(--ink);
}

/* Hero */

.hero {
  padding: 60px 0 68px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 44px;
  align-items: start;
}

.hero-kicker {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.hero-copy h1 {
  margin: 0 0 20px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 4.3vw, 3.55rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.hero-lead {
  margin: 0 0 26px;
  font-size: 17.5px;
  line-height: 1.56;
  color: var(--ink-2);
  max-width: 52ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-bottom: 18px;
}

.hero-note {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  max-width: 54ch;
}

/* Illustrative Desk Widget */

.desk-widget {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.widget-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  padding: 12px 18px;
  background: var(--surface-tint);
  border-bottom: 1px solid var(--line);
}

.widget-label {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.widget-tabs {
  display: inline-flex;
  gap: 6px;
}

.tab-btn {
  border: 1px solid var(--field-border);
  background: var(--surface);
  color: var(--ink-2);
  border-radius: 6px;
  min-height: 36px;
  padding: 6px 12px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

.tab-btn.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #FFFFFF;
}

.tab-btn:focus-visible,
.widget-panel:focus-visible,
.btn:focus-visible,
.btn-decision:focus-visible,
.btn-reset:focus-visible,
.nav-toggle:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.widget-panel {
  padding: 20px;
}

.doc-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.doc-head {
  min-width: 0;
}

.doc-title {
  margin: 0 0 3px;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
}

.doc-source {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  border: 1px solid transparent;
}

.pill-amber {
  background: var(--amber-bg);
  color: var(--amber-ink);
  border-color: var(--amber-border);
}

.pill-green {
  background: var(--green-bg);
  color: var(--green-ink);
  border-color: var(--green-border);
}

.pill-rose {
  background: var(--rose-bg);
  color: var(--rose-ink);
  border-color: var(--rose-border);
}

.ledger-table {
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
  margin-bottom: 16px;
}

.ledger-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 9px 14px;
  font-size: 14px;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
}

.ledger-row:last-child {
  border-bottom: 0;
}

.ledger-row .mono {
  flex-shrink: 0;
}

.ledger-total {
  background: var(--bg);
  font-weight: 600;
  color: var(--ink);
}

.check-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.check-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink-2);
}

.check-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

.check-pass .check-tag {
  background: var(--green-bg);
  color: var(--green-ink);
}

.check-warn .check-tag {
  background: var(--amber-bg);
  color: var(--amber-ink);
}

.decision-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.btn-decision {
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-approve {
  background: var(--accent);
  color: #FFFFFF;
}

.btn-approve:hover {
  background: var(--accent-hover);
}

.btn-flag {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--field-border);
}

.btn-flag:hover {
  border-color: var(--ink);
  background: var(--bg);
}

.btn-reset {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
  padding: 6px 8px;
}

.decision-note {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
}

.widget-footnote {
  margin: 0;
  padding: 10px 18px;
  border-top: 1px solid var(--line);
  background: var(--bg);
  font-size: 12px;
  color: var(--muted);
}

/* Sections */

.section {
  padding: 68px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 84px;
}

.section-tinted {
  background: var(--surface-tint);
}

.section-head {
  max-width: 64ch;
  margin-bottom: 34px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.section-head p {
  margin: 0;
  color: var(--ink-2);
  font-size: 16.5px;
}

/* Workflows */

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

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.price-tag {
  margin: 0;
  font-size: 14.5px;
  color: var(--accent);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.card-body {
  margin: 0;
  color: var(--ink-2);
  font-size: 15.5px;
}

.card-foot {
  margin: auto 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}

.card-meta {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
}

.card-link {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

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

.partner-strip {
  margin-top: 24px;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.partner-strip h3 {
  margin: 0 0 4px;
  font-size: 17px;
}

.partner-strip p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
  max-width: 64ch;
}

/* Steps + Sample Report Artifact */

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

.step-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.step-kicker {
  margin: 0 0 8px;
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.step-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.3;
}

.step-card p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-2);
}

.sample-report {
  margin-top: 28px;
  background: var(--ink);
  color: #E9F0EF;
  border-radius: var(--radius);
  padding: 26px 28px;
}

.sample-report-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid #243536;
  margin-bottom: 20px;
}

.sample-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  color: #7DD3C0;
  letter-spacing: 0.03em;
}

.sample-report h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.15;
  color: #FFFFFF;
}

.sample-rule {
  margin: 0;
  font-size: 12.5px;
  color: #F5C451;
}

.report-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.metric {
  background: #121E20;
  border: 1px solid #243536;
  border-radius: 8px;
  padding: 14px 16px;
  display: grid;
  gap: 4px;
}

.metric-num {
  font-size: 24px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #FFFFFF;
}

.metric-label {
  font-size: 13.5px;
  color: #B9C7C6;
  line-height: 1.35;
}

.sample-caption {
  margin: 0;
  font-size: 14px;
  color: #B9C7C6;
}

/* Pricing */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
}

.price-card-featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.price-card h3 {
  margin: 0 0 6px;
  font-size: 19px;
}

.price-amount {
  margin: 0 0 8px;
  font-size: 38px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
}

.price-unit {
  font-size: 17px;
  font-weight: 500;
  color: var(--muted);
}

.price-credit {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
}

.price-sub {
  margin: 0 0 18px;
  font-size: 13.5px;
  color: var(--muted);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.plain-list {
  margin: 0 0 22px;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  font-size: 14.5px;
  color: var(--ink-2);
}

.price-card .btn {
  margin-top: auto;
}

/* FAQ */

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 860px;
}

.faq-list details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--muted);
  flex-shrink: 0;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  margin: 12px 0 2px;
  color: var(--ink-2);
  font-size: 15px;
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 44px;
  align-items: start;
}

.contact-copy h2 {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  line-height: 1.12;
}

.contact-copy > p {
  margin: 0 0 22px;
  color: var(--ink-2);
  font-size: 16px;
}

.contact-direct {
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 20px;
  display: grid;
  gap: 8px;
}

.contact-direct p {
  margin: 0;
  font-size: 15px;
  display: flex;
  gap: 12px;
}

.contact-direct strong {
  min-width: 74px;
  color: var(--muted);
  font-weight: 600;
}

.contact-direct a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.contact-direct a:hover {
  text-decoration: underline;
}

.prep-box h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.privacy-note {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
}

.privacy-note a {
  color: var(--accent);
  font-weight: 500;
}

.noscript-box {
  background: var(--surface);
  border: 1px solid var(--field-border);
  border-radius: var(--radius);
  padding: 22px;
  font-size: 15px;
  color: var(--ink-2);
}

.noscript-box a {
  color: var(--accent);
  font-weight: 600;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}

.contact-form[hidden] {
  display: none;
}

.required-hint {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.req {
  color: var(--rose-ink);
}

.opt {
  font-weight: 400;
  color: var(--muted);
}

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

.field-row {
  display: grid;
  gap: 6px;
}

.field-row label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.field-help {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.field-row input,
.field-row select,
.field-row textarea {
  width: 100%;
  padding: 10px 12px;
  min-height: 42px;
  border: 1px solid var(--field-border);
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink);
  background: #FFFFFF;
}

.field-row textarea {
  min-height: 104px;
  resize: vertical;
}

.field-row input:focus,
.field-row select:focus,
.field-row textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.form-status {
  margin: 0;
  font-size: 14px;
}

.form-status:empty {
  display: none;
}

.form-status.is-success {
  color: var(--green-ink);
  font-weight: 600;
}

.form-status.is-error {
  color: var(--rose-ink);
}

.form-status a {
  color: var(--accent);
  font-weight: 600;
}

/* Footer */

.site-footer {
  padding: 36px 0 44px;
  background: var(--bg);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-legal {
  margin: 8px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  font-size: 14px;
}

.footer-links a {
  color: var(--ink-2);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Not-found page */

.not-found-main {
  padding: 96px 0;
}

.not-found-main h1 {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
}

.not-found-main p {
  margin: 0 0 24px;
  color: var(--ink-2);
  max-width: 52ch;
}

/* Responsive */

@media (max-width: 960px) {
  .hero-grid,
  .steps-grid,
  .pricing-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .report-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    padding: 40px 0 48px;
  }

  .partner-strip {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .wrap {
    width: min(1140px, 100% - 32px);
  }

  .site-nav,
  .header-actions .header-cta {
    display: none;
  }

  .header-actions .mobile-cta,
  .nav-toggle {
    display: inline-flex;
  }

  .workflow-grid,
  .field-pair {
    grid-template-columns: 1fr;
  }

  .doc-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .section {
    padding: 48px 0;
  }

  .sample-report {
    padding: 20px;
  }

  .report-metrics {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
