:root {
  color-scheme: light;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: #122720;
  background: #f3f6f2;
  --dark: #102a23;
  --muted: #52665d;
  --line: #dce5dd;
  --accent: #d4f885;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 3px solid #478953; outline-offset: 4px; }
.wrap { width: min(100% - 3rem, 72rem); margin-inline: auto; }
.header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.3rem; }
.brand, .back { text-decoration: none; font-weight: 700; }
.brand { display: inline-flex; gap: .6rem; align-items: center; }
.brand-mark, .company-mark { display: inline-grid; place-items: center; width: 2rem; aspect-ratio: 1; border-radius: .55rem; background: var(--accent); color: var(--dark); font-size: .85rem; font-weight: 800; }
.brand-divider, .back { color: var(--muted); }
.back:hover, footer a:hover { text-decoration: underline; }
.hero {
  color: #fff;
  padding-block: clamp(3rem, 8vw, 7rem);
  background: radial-gradient(ellipse at top right, #315c3c, transparent 64%), var(--dark);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: clamp(2rem, 6vw, 5rem); }
.eyebrow { font-size: .875rem; font-weight: 750; letter-spacing: .1em; color: #386348; }
.hero .eyebrow { color: var(--accent); }
h1, h2, h3, h4 { line-height: 1.08; letter-spacing: -.04em; }
h1 { font-size: clamp(2.75rem, 6vw, 5.2rem); margin-top: 1rem; }
h1 em { display: block; color: var(--accent); font-style: normal; }
.intro { color: #d1e1d6; line-height: 1.65; margin-block: 1.4rem 1.8rem; max-width: 33rem; font-size: 1.125rem; }
.button { display: inline-flex; justify-content: center; align-items: center; padding: .75rem 1.1rem; min-height: 2.75rem; border-radius: .55rem; border: 0; text-decoration: none; font-weight: 750; cursor: pointer; }
.primary { background: var(--accent); color: var(--dark); }
.primary:hover { background: #e6ffad; }
.dark { background: var(--dark); color: #fff; }
.dark:hover { background: #285344; }
.preview { min-width: 0; border-radius: 1rem; padding: .85rem; border: 1px solid #76917d; background: #19392e; box-shadow: 0 1.5rem 4rem #061c15a6; }
.preview-top, .preview-top > span:first-child { display: flex; align-items: center; gap: .65rem; }
.preview-top { justify-content: space-between; flex-wrap: wrap; padding: .25rem .25rem .9rem; font-weight: 700; }
.sample { font-size: .875rem; font-weight: 500; color: #d5e4d9; }
.preview-main { border-radius: .65rem; padding: clamp(1rem, 3vw, 1.7rem); background: #f7faf5; color: var(--dark); }
.preview-main .eyebrow { color: #386348; }
.preview-main h2 { font-size: 1.8rem; margin-block: .35rem .9rem; }
.preview-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
.preview-metrics div { background: #e8f0e6; padding: .65rem; border-radius: .5rem; }
.preview-metrics span { display: block; color: var(--muted); font-size: .875rem; }
.preview-metrics strong { display: block; margin-top: .25rem; font-size: clamp(1.25rem, 3vw, 1.8rem); }
.chart { display: grid; grid-template-columns: repeat(5, 1fr); gap: .55rem; margin-top: .9rem; }
.chart div { height: 6.4rem; display: flex; flex-direction: column; justify-content: end; align-items: center; gap: .3rem; }
.chart i { display: block; height: var(--height); max-height: 5rem; width: min(100%, 3.25rem); background: #82b38a; border-radius: .35rem .35rem 0 0; }
.chart div:last-child i { background: #35714f; }
.chart span { color: var(--muted); font-size: .875rem; }
.modules { position: sticky; top: 0; z-index: 2; background: #fff; border-bottom: 1px solid var(--line); }
.module-links { display: flex; align-items: stretch; gap: .3rem 1rem; flex-wrap: wrap; }
.module-links a { display: flex; align-items: center; padding: .7rem .5rem; min-height: 3.25rem; color: var(--dark); font-weight: 650; text-decoration: none; }
.module-links a:hover, .module-links a:focus-visible { background: #eaf3e9; }
.workspace { padding-block: 3.25rem; }
.workspace, .panel { scroll-margin-top: 7rem; }
.workspace-heading { margin-bottom: 1.75rem; }
.workspace-heading h2 { font-size: clamp(2rem, 5vw, 3.15rem); margin-block: .4rem .65rem; }
.workspace-heading > p:last-child, .panel-heading > div > p:last-child { color: var(--muted); line-height: 1.55; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 1.1rem; padding: clamp(1rem, 3.5vw, 2rem); margin-bottom: 1rem; }
.panel-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.25rem; }
.panel-heading h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-block: .4rem .45rem; }
.editor { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
label { display: block; font-size: .875rem; font-weight: 700; margin-bottom: .35rem; }
input, textarea, select { width: 100%; border-radius: .45rem; border: 1px solid #a5b7a9; background-color: #fff; color: var(--dark); padding: .65rem .75rem; }
select { appearance: none; padding-right: 2rem; background-image: linear-gradient(45deg, transparent 49%, #52665d 50%), linear-gradient(135deg, #52665d 50%, transparent 51%); background-position: right 1rem center, right .7rem center; background-size: .3rem .3rem; background-repeat: no-repeat; }
textarea { resize: vertical; }
.editor input, .editor textarea { margin-bottom: .75rem; }
.site-preview { display: flex; flex-direction: column; justify-content: center; background: #e6f1e4; padding: clamp(1rem, 4vw, 2rem); border-radius: .75rem; overflow-wrap: anywhere; }
.site-preview h4 { font-size: clamp(1.5rem, 4vw, 2.5rem); margin-block: .5rem; }
.site-preview p:last-child { color: var(--muted); line-height: 1.55; }
.filter { width: min(100%, 16rem); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: .65rem; }
table { border-collapse: collapse; width: 100%; min-width: 32rem; text-align: left; }
th, td { padding: .85rem; }
thead { background: #edf3ec; font-size: .875rem; }
tbody tr + tr { border-top: 1px solid var(--line); }
.badge { display: inline-block; padding: .25rem .6rem; border-radius: 1rem; font-size: .875rem; font-weight: 650; white-space: nowrap; }
.green { background: #e1f2e2; color: #20532c; }
.amber { background: #fff0d0; color: #694508; }
.red { background: #fae7e3; color: #852e28; }
.pipeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.pipeline article { min-width: 0; border: 1px solid var(--line); border-radius: .65rem; background: #f6f9f5; padding: 1rem; }
.pipeline label { font-size: 1rem; }
.pipeline p { color: var(--muted); margin-block: .35rem .65rem; }
.pipeline strong { display: block; margin-bottom: .6rem; }
.feedback { margin-top: .55rem; min-height: 1.25rem; color: #386348; font-size: .875rem; }
footer { background: var(--dark); color: #fff; }
footer a { text-decoration: none; }
@media (max-width: 48rem) {
  .hero-grid, .editor, .pipeline { grid-template-columns: 1fr; }
}
@media (max-width: 28rem) {
  .wrap { width: calc(100% - 2rem); }
  .module-links { gap: 0 .4rem; }
  .module-links a { font-size: .875rem; }
  .back { font-size: .875rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
