:root {
  color-scheme: light;
  --bg: #f8f7f2;
  --surface: #fffdf7;
  --surface-alt: #f2ebe1;
  --ink: #17202a;
  --muted: #596170;
  --line: #d9ded7;
  --green: #147d64;
  --amber: #d89b27;
  --coral: #e46141;
  --indigo: #4d5bd1;
  --max-width: 1180px;
  --shadow: 0 18px 50px rgba(23, 32, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(90deg, rgba(23, 32, 42, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(23, 32, 42, 0.045) 1px, transparent 1px),
    var(--bg);
  background-size: 56px 56px;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(248, 247, 242, 0.2) 0%, rgba(248, 247, 242, 0.86) 64%, #f8f7f2 100%);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
.comparison-scroll:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--bg);
  border-radius: 8px;
}

.skip-link:focus {
  top: 1rem;
}

.section-wrap,
.topbar {
  width: min(var(--max-width), calc(100% - 40px));
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1rem 0;
  background: rgba(248, 247, 242, 0.88);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
}

.topbar.is-scrolled {
  border-bottom-color: var(--line);
}

.brand {
  display: inline-flex;
  width: 260px;
  flex: 0 0 auto;
}

.brand img {
  width: 100%;
  height: auto;
}

.nav {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.25rem 0;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  flex: 0 0 auto;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.9rem;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.74);
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: 3rem;
  align-items: center;
  padding: 5rem 0 3.5rem;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1,
h2,
h3,
summary {
  letter-spacing: 0;
}

h1 {
  max-width: 10ch;
  font-size: 5rem;
  line-height: 0.95;
  font-weight: 900;
}

h2 {
  max-width: 15ch;
  font-size: 2.8rem;
  line-height: 1.04;
  font-weight: 900;
}

h3 {
  font-size: 1.1rem;
  line-height: 1.2;
}

p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-dek {
  max-width: 58ch;
  margin-top: 1.25rem;
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.1rem;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid var(--ink);
  font-weight: 800;
}

.button.primary {
  background: var(--ink);
  color: var(--bg);
}

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

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

.hero-visual {
  margin: 0;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-visual img {
  width: 100%;
  height: auto;
}

.criteria-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 1rem;
  border: 1px solid var(--line);
  background: var(--line);
}

.criteria-strip article {
  min-height: 174px;
  padding: 1.25rem;
  background: var(--surface);
}

.criteria-strip span {
  display: inline-flex;
  margin-bottom: 1.1rem;
  color: var(--green);
  font-weight: 900;
}

.criteria-strip strong {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 1rem;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -1rem;
}

.section-heading p:not(.eyebrow) {
  max-width: 68ch;
}

.feature-section,
.trust-section,
.comparison-section,
.workflow-section,
.use-case-section,
.faq-section,
.site-footer {
  padding-top: 5.5rem;
}

.section-meta {
  display: grid;
  gap: 0.8rem;
}

.updated-note {
  color: var(--ink);
  font-weight: 700;
}

.feature-grid,
.use-case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card,
.use-case-grid article {
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.feature-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 900;
}

.feature-card:nth-child(2) .feature-icon,
.use-case-grid article:nth-child(2) h3 {
  color: var(--amber);
}

.feature-card:nth-child(3) .feature-icon,
.use-case-grid article:nth-child(3) h3 {
  color: var(--coral);
}

.feature-card:nth-child(4) .feature-icon {
  color: var(--indigo);
}

.feature-card h3,
.use-case-grid h3 {
  margin-bottom: 0.7rem;
}

.comparison-scroll {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  padding: 1.1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--ink);
  background: var(--surface-alt);
  font-size: 0.82rem;
  text-transform: uppercase;
}

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

td:first-child {
  color: var(--ink);
  font-weight: 800;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.workflow-list {
  counter-reset: workflow;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.workflow-list li {
  position: relative;
  min-height: 245px;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.workflow-list li::before {
  counter-increment: workflow;
  content: "0" counter(workflow);
  display: inline-flex;
  margin-bottom: 4.4rem;
  color: var(--green);
  font-weight: 900;
}

.workflow-list span {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 900;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

summary {
  cursor: pointer;
  padding: 1.1rem 1.25rem;
  color: var(--ink);
  font-weight: 900;
}

details p {
  padding: 0 1.25rem 1.25rem;
}

.site-footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 3rem;
  color: var(--muted);
}

.site-footer img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
}

.site-footer p:last-child {
  margin-left: auto;
  text-align: right;
}

@media (max-width: 960px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand {
    width: 220px;
  }

  .nav {
    width: 100%;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 3rem;
  }

  h1 {
    max-width: 11ch;
    font-size: 4rem;
  }

  h2 {
    font-size: 2.35rem;
  }

  .criteria-strip,
  .feature-grid,
  .workflow-list,
  .use-case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .section-wrap,
  .topbar {
    width: min(100% - 28px, var(--max-width));
  }

  .hero {
    padding-top: 2rem;
  }

  h1 {
    font-size: 3.05rem;
  }

  h2 {
    max-width: 100%;
    font-size: 2rem;
  }

  .hero-dek {
    font-size: 1rem;
  }

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

  .section-heading {
    display: block;
  }

  .section-heading .eyebrow {
    margin-bottom: 0.8rem;
  }

  .section-heading h2 {
    margin-bottom: 1rem;
  }

  .criteria-strip,
  .feature-grid,
  .workflow-list,
  .use-case-grid {
    grid-template-columns: 1fr;
  }

  .criteria-strip article {
    min-height: 0;
  }

  .workflow-list li {
    min-height: 0;
  }

  .workflow-list li::before {
    margin-bottom: 2.5rem;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer p:last-child {
    margin-left: 0;
    text-align: left;
  }
}
