:root {
  color-scheme: light;
  --paper: #fcfbf7;
  --ink: #172d25;
  --muted: #4f6158;
  --green: #08765f;
  --forest: #152f26;
  --mint: #b9f2d9;
  --lilac: #ede7fc;
  --purple: #543a83;
  --line: #d8ded3;
  --mono: "IBM Plex Mono", Consolas, monospace;
  font-family: "Geist", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
figure, h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid #287a59; outline-offset: 4px; }
.wrap { width: min(1264px, calc(100% - 96px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 76px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; width: fit-content; font-size: 16px; font-weight: 750; letter-spacing: -.025em; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 8px; background: var(--mint); color: var(--forest); font: 700 15px/1 var(--mono); }
nav { display: flex; align-items: center; gap: 34px; font-size: 14px; color: var(--muted); }
nav a:hover, .text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; border: 1px solid transparent; border-radius: 8px; padding: 12px 17px; font-size: 14px; line-height: 1.2; font-weight: 700; white-space: nowrap; }
.button-outline { border-color: #b8c6bc; color: var(--ink); background: transparent; }
.button-outline:hover { background: #e8efe7; }
.source-link { justify-self: end; }
.button-primary { background: var(--green); color: #fff; padding: 15px 19px; box-shadow: 0 3px 0 #10201922; }
.button-primary:hover { background: var(--forest); }
.button-primary span { color: var(--mint); }

.hero-section {
  background: radial-gradient(ellipse at 85% 0%, #d9f4e9, transparent 56%),
              linear-gradient(110deg, var(--paper) 27%, #f4f4fc 61%, #e5e2fa);
}
.hero { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); align-items: center; gap: clamp(24px, 3.4vw, 52px); padding-block: clamp(52px, 6.6vw, 100px); }
.eyebrow { display: flex; align-items: center; gap: 9px; font: 600 12px/1.35 var(--mono); letter-spacing: .11em; text-transform: uppercase; color: var(--green); }
.hero-eyebrow { gap: 12px; flex-wrap: wrap; }
.free-label { padding: 6px 12px; border: 1px solid #ecc35a; border-radius: 5px; color: #43300a; background: #ffdc77; font-size: 13px; font-weight: 750; }
.hero h1 { margin-top: 20px; font-size: clamp(45px, 5.4vw, 82px); line-height: .99; font-weight: 750; letter-spacing: -.078em; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero-description { margin-top: 25px; max-width: 35ch; color: var(--muted); font-size: clamp(17px, 1.45vw, 21px); line-height: 1.55; }
.hero-actions { margin-top: 29px; }

.preview { min-width: 0; padding: 0 20px; border: 1px solid #325860; border-radius: 17px; background: linear-gradient(135deg, #173747, #105a52 62%, #3b466d); color: #f2faf3; box-shadow: 0 22px 44px -24px #303c6a9c; }
.preview-header, .preview-footer { min-height: 51px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.preview-header { font: 500 12px/1.35 var(--mono); }
#preview-title { display: flex; align-items: center; gap: 9px; }
.preview-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 3px #c0ebd024; }
.expand, .preview-caption { color: #d4e5d9; }
.expand:hover { text-decoration: underline; text-underline-offset: 4px; }
.preview :focus-visible { outline-color: var(--mint); }
#preview-image { width: 100%; border-radius: 8px; border: 1px solid #e0e9db30; box-shadow: 0 9px 21px #09171170; }
.preview-footer { min-height: 60px; }
.preview-options { display: flex; gap: 5px; }
.preview-options button { border: 1px solid transparent; background: transparent; border-radius: 5px; padding: 6px 9px; color: #d4e5d9; font-size: 12px; font-weight: 600; }
.preview-options button:hover { background: #ffffff17; }
.preview-options button[aria-pressed="true"] { background: var(--mint); color: var(--forest); }
.preview-caption { font: 400 11px/1.35 var(--mono); }

.tool-strip { border-block: 1px solid #c2e1d3; background: #e2f6ec; }
.tools { display: grid; grid-template-columns: 1fr 3.4fr; align-items: center; gap: 25px; min-height: 90px; padding-block: 20px; }
.tools ul { display: flex; align-items: center; justify-content: space-between; gap: 14px 26px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.tools li { color: #30483c; font-size: clamp(16px, 1.55vw, 23px); font-weight: 720; letter-spacing: -.045em; white-space: nowrap; }

.workflow, .packs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(36px, 7vw, 110px); padding-block: clamp(54px, 7vw, 104px); }
.workflow h2, .packs h2 { margin-top: 12px; font-size: clamp(38px, 4.2vw, 61px); line-height: 1.02; letter-spacing: -.065em; font-weight: 730; }
.workflow-copy > p:last-child, .pack-copy > p:nth-of-type(2) { margin-top: 19px; max-width: 40ch; font-size: 17px; line-height: 1.65; color: var(--muted); }
.demo { padding: clamp(16px, 2.6vw, 32px); border: 1px solid #d7cfeb; background: #f8f5ff; border-radius: 14px; box-shadow: 0 10px 35px -24px #543a8366; }
.demo-title { display: flex; align-items: center; gap: 10px; margin-bottom: 21px; }
.demo-title .brand-mark { background: #e6dafb; color: var(--purple); }
.demo-title h3 { font-size: 17px; letter-spacing: -.025em; }
.field-title, .fields label { display: block; font-size: 13px; font-weight: 650; }
.code-block, .result { margin-top: 7px; border: 1px solid #c2e1d3; border-radius: 7px; background: #e4f5ed; }
.code-block { padding: 12px; overflow-wrap: anywhere; background: var(--lilac); border-color: #d7cfeb; }
code, .demo input { font: 500 13px/1.5 var(--mono); }
.code-block span { color: var(--purple); font-weight: 700; }
.fields { display: grid; grid-template-columns: 1fr 1.5fr; gap: 12px; margin-block: 15px; }
.fields input { display: block; width: 100%; padding: 8px 10px; margin-top: 6px; border: 1px solid #bac8be; border-radius: 6px; background: #fffefa; color: var(--ink); }
.fields input:invalid { border-color: #a14031; }
.result { display: flex; align-items: center; gap: 4px; padding: 5px; }
.result input { flex: 1; min-width: 0; border: 0; padding: 7px; background: transparent; color: var(--ink); }
.button-copy { background: var(--forest); color: #fff; padding: 8px 12px; border-radius: 5px; }
.button-copy:hover { background: var(--green); }
.button-copy:disabled { cursor: default; opacity: .6; }
.demo-status { margin-top: 10px; font-size: 12px; color: var(--muted); min-height: 1.4em; }

.packs-section { background: linear-gradient(120deg, #f1ebfb, #e7eafa); border-block: 1px solid #dcd5ed; }
.pack-copy .eyebrow, .pack-copy .text-link { color: var(--purple); }
.pack-figure a { display: block; border-radius: 10px; box-shadow: 0 15px 35px -20px #18372987; }
.pack-figure img { width: 100%; border: 1px solid #bcc9bf; border-radius: inherit; }
.pack-figure a:hover img { border-color: var(--green); }
.text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--green); font-size: 14px; font-weight: 700; }
.pack-copy .text-link { margin-top: 22px; }
.footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px 24px; min-height: 96px; padding-block: 18px; }
.footer > span { color: var(--muted); font: 500 12px/1.35 var(--mono); }

dialog { width: min(1440px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; border: 1px solid #668174; border-radius: 13px; color: #f2faf3; background: var(--forest); }
dialog::backdrop { background: #091811dd; }
.viewer-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 15px; }
.viewer-header h2 { font-size: 16px; }
.viewer-header .button { color: inherit; padding: 7px 11px; }
.viewer-header .button:hover { background: #ffffff17; }
.viewer-header .button:focus-visible { outline-color: var(--mint); }
#viewer-image { width: 100%; max-height: calc(100dvh - 86px); object-fit: contain; }

@media (max-width: 1050px) {
  .wrap { width: calc(100% - 64px); }
  .hero { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .hero h1 { font-size: clamp(41px, 5.25vw, 62px); }
}

@media (max-width: 800px) {
  .wrap { width: calc(100% - 40px); }
  .header-inner { grid-template-columns: 1fr auto; gap: 13px; padding-block: 13px; }
  nav { grid-row: 2; grid-column: 1 / -1; gap: 20px; flex-wrap: wrap; }
  .hero, .workflow, .packs { grid-template-columns: minmax(0, 1fr); }
  .hero { gap: 34px; }
  .hero h1 { font-size: clamp(48px, 10vw, 73px); }
  .tools { grid-template-columns: 1fr; gap: 13px; }
  .tools ul { justify-content: flex-start; }
  .pack-copy { grid-row: 1; }
}

@media (max-width: 420px) {
  .wrap { width: calc(100% - 32px); }
  .preview { padding-inline: 10px; border-radius: 12px; }
  .preview-footer { min-height: 51px; }
  .preview-caption { font-size: 10px; }
  nav { gap: 12px 16px; font-size: 13px; }
}

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