:root {
  color-scheme: light;
  --canvas: #f5f3ed;
  --paper: #fffefa;
  --ink: #17201c;
  --muted: #617068;
  --line: #d9ddd7;
  --green: #216b4d;
  --green-dark: #154b37;
  --green-soft: #dcece3;
  --stone: #e8e8e2;
  --shadow: 0 22px 60px rgba(23, 32, 28, 0.13);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 85% 4%, rgba(46, 125, 91, 0.13), transparent 26rem),
    var(--canvas);
  color: var(--ink);
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.shell {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
}

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

.brand img {
  width: 36px;
  height: 36px;
}

.nav-link {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
  text-underline-offset: 4px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(480px, 1.12fr);
  align-items: center;
  gap: clamp(48px, 8vw, 96px);
  min-height: 690px;
  padding: 76px 0 100px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 6vw, 5.7rem);
  line-height: 0.96;
  letter-spacing: -0.065em;
}

.hero-copy {
  max-width: 640px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(1.06rem, 2vw, 1.24rem);
  line-height: 1.7;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  font-size: 0.93rem;
  font-weight: 760;
  text-decoration: none;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    background 150ms ease;
}

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

.button-primary {
  border-color: var(--green-dark);
  background: var(--green-dark);
  box-shadow: 0 10px 24px rgba(21, 75, 55, 0.2);
  color: white;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.56);
}

.button:focus-visible,
.demo-toggle:focus-visible,
a:focus-visible {
  outline: 3px solid #78bd9c;
  outline-offset: 3px;
}

.meta-line {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.82rem;
}

.demo-wrap {
  position: relative;
}

.demo-wrap::before {
  position: absolute;
  inset: -24px 36px 24px -24px;
  z-index: -1;
  border: 1px solid rgba(33, 107, 77, 0.22);
  border-radius: 28px;
  content: "";
}

.admin-demo {
  overflow: hidden;
  border: 1px solid #cfd5d0;
  border-radius: 15px;
  background: #f6f6f7;
  box-shadow: var(--shadow);
}

.demo-browser {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 39px;
  padding: 0 14px;
  border-bottom: 1px solid #d6d8d7;
  background: #eceeec;
}

.demo-browser span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a6aba7;
}

.demo-layout {
  display: grid;
  grid-template-columns: 112px 1fr;
  min-height: 420px;
}

.demo-sidebar {
  padding: 18px 12px;
  background: #202522;
  color: #e8ece9;
}

.demo-store {
  margin-bottom: 20px;
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demo-nav {
  display: grid;
  gap: 8px;
}

.demo-nav span {
  padding: 7px 8px;
  border-radius: 5px;
  color: #abb4ae;
  font-size: 0.62rem;
}

.demo-nav .active {
  background: #343b37;
  color: white;
}

.demo-canvas {
  position: relative;
  overflow: hidden;
  padding: 28px;
}

.demo-kicker {
  color: #69716d;
  font-size: 0.65rem;
}

.demo-canvas h2 {
  margin-bottom: 24px;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
}

.flow-card {
  max-width: 310px;
  padding: 18px;
  border: 1px solid #dadeda;
  border-radius: 9px;
  background: white;
  box-shadow: 0 5px 16px rgba(22, 30, 26, 0.06);
}

.flow-label {
  margin-bottom: 6px;
  color: #6a746e;
  font-size: 0.63rem;
  font-weight: 760;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.flow-card strong {
  display: block;
  margin-bottom: 34px;
  font-size: 0.86rem;
}

.add-variable {
  color: #23684d;
  font-size: 0.72rem;
  font-weight: 730;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.demo-sidekick {
  position: absolute;
  right: 24px;
  bottom: 60px;
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(330px, calc(100% - 48px));
  min-height: 54px;
  padding: 12px 16px;
  border: 1px solid #cfc8e2;
  border-radius: 14px;
  background: #fbfaff;
  box-shadow: 0 10px 26px rgba(44, 34, 67, 0.2);
  color: #382e4a;
  font-size: 0.74rem;
  font-weight: 720;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.demo-sidekick-icon {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 50%;
  background: #6a4d8e;
  color: white;
}

.admin-demo.is-hidden .demo-sidekick {
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
}

.demo-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 18px;
  border-top: 1px solid #d6d8d7;
  background: white;
}

.demo-controls strong,
.demo-controls small {
  display: block;
}

.demo-controls strong {
  margin-bottom: 3px;
  font-size: 0.76rem;
}

.demo-controls small {
  color: var(--muted);
  font-size: 0.66rem;
}

.demo-toggle {
  position: relative;
  width: 48px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 30px;
  background: #aeb5b0;
  cursor: pointer;
  transition: background 180ms ease;
}

.demo-toggle::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.24);
  content: "";
  transition: transform 180ms ease;
}

.demo-toggle[aria-pressed="true"] {
  background: var(--green);
}

.demo-toggle[aria-pressed="true"]::after {
  transform: translateX(20px);
}

.trust-strip {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.42);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.trust-item {
  padding: 28px;
  border-left: 1px solid var(--line);
}

.trust-item:first-child {
  border-left: 0;
}

.trust-item strong,
.trust-item span {
  display: block;
}

.trust-item strong {
  margin-bottom: 5px;
  font-size: 0.86rem;
}

.trust-item span {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.45;
}

.section {
  padding: 112px 0;
}

.section-heading {
  max-width: 690px;
  margin-bottom: 52px;
}

.section-heading h2 {
  margin-bottom: 18px;
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.section-heading p {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

.steps,
.facts,
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step,
.fact,
.catalog-card {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 254, 250, 0.72);
}

.step,
.fact {
  padding: 28px;
}

.step-number {
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 0.76rem;
  font-weight: 820;
}

.step h3,
.fact h3,
.catalog-card h2 {
  margin-bottom: 10px;
  font-size: 1.04rem;
  letter-spacing: -0.02em;
}

.step p,
.fact p,
.catalog-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.65;
}

.fact code {
  font-size: 0.78rem;
}

.callout {
  display: grid;
  grid-template-columns: 1.25fr auto;
  align-items: center;
  gap: 36px;
  padding: clamp(34px, 6vw, 64px);
  border-radius: 16px;
  background: var(--green-dark);
  color: white;
}

.callout h2 {
  max-width: 720px;
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.callout p {
  max-width: 650px;
  margin-bottom: 0;
  color: #cfe0d8;
  line-height: 1.65;
}

.callout .button {
  border-color: white;
  background: white;
  color: var(--green-dark);
}

.disclosure {
  padding: 36px 0 80px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.7;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.76rem;
}

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

.catalog-hero {
  max-width: 820px;
  padding: 100px 0 70px;
}

.catalog-hero h1 {
  font-size: clamp(3.3rem, 8vw, 6.8rem);
}

.catalog-grid {
  grid-template-columns: repeat(2, 1fr);
  padding-bottom: 120px;
}

.catalog-card {
  padding: 32px;
  text-decoration: none;
  transition:
    border-color 150ms ease,
    transform 150ms ease,
    box-shadow 150ms ease;
}

.catalog-card:hover {
  border-color: #a2b7aa;
  box-shadow: 0 16px 40px rgba(23, 32, 28, 0.09);
  transform: translateY(-3px);
}

.catalog-card .card-meta {
  display: block;
  margin-bottom: 42px;
  color: var(--green);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .demo-wrap {
    max-width: 700px;
  }

  .trust-grid,
  .steps,
  .facts {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-item:nth-child(3) {
    border-left: 0;
  }

  .trust-item:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 620px) {
  .shell {
    width: min(100% - 28px, 1160px);
  }

  .site-header {
    min-height: 70px;
  }

  .hero,
  .section {
    padding-block: 68px;
  }

  .hero {
    gap: 54px;
  }

  h1 {
    font-size: clamp(2.9rem, 16vw, 4.6rem);
  }

  .demo-layout {
    grid-template-columns: 76px 1fr;
    min-height: 360px;
  }

  .demo-sidebar {
    padding-inline: 7px;
  }

  .demo-canvas {
    padding: 20px 14px;
  }

  .demo-sidekick {
    right: 14px;
    bottom: 48px;
    width: calc(100% - 28px);
  }

  .trust-grid,
  .steps,
  .facts,
  .catalog-grid,
  .callout {
    grid-template-columns: 1fr;
  }

  .trust-item,
  .trust-item:nth-child(3) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .trust-item:first-child {
    border-top: 0;
  }

  .callout {
    align-items: start;
  }

  .callout .button {
    width: 100%;
  }

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

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
