/* Layout: long-form product site. Quiet paper ground, green as the single bold accent (matches promo video), amber reserved for "needs a human". */
:root {
  --bg: #fbfbf8;
  --bg-2: #f2f3ee;
  --card: #ffffff;
  --fg: #17201b;
  --muted: #5d6a62;
  --line: #dfe3da;
  --accent: #1f7a55;
  --accent-ink: #ffffff;
  --accent-soft: #e3f0e9;
  --amber: #9a6416;
  --amber-soft: #f6ecd8;
  --display: "Schibsted Grotesk", system-ui, sans-serif;
  --body: "Hanken Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --shadow: 0 1px 2px rgba(23, 32, 27, .06), 0 12px 32px -12px rgba(23, 32, 27, .18);
}

@media (prefers-color-scheme:dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1511;
    --bg-2: #151c17;
    --card: #19211c;
    --fg: #e9eee9;
    --muted: #9aa89f;
    --line: #27322b;
    --accent: #4cc38a;
    --accent-ink: #06150d;
    --accent-soft: #16291f;
    --amber: #e0a54a;
    --amber-soft: #2b2312;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -12px rgba(0, 0, 0, .6);
    color-scheme: dark
  }
}

:root[data-theme="dark"] {
  --bg: #0f1511;
  --bg-2: #151c17;
  --card: #19211c;
  --fg: #e9eee9;
  --muted: #9aa89f;
  --line: #27322b;
  --accent: #4cc38a;
  --accent-ink: #06150d;
  --accent-soft: #16291f;
  --amber: #e0a54a;
  --amber-soft: #2b2312;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -12px rgba(0, 0, 0, .6);
  color-scheme: dark
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  margin: 0
}

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
  letter-spacing: -.02em
}

p {
  margin: 0
}

a {
  color: inherit
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px
}

.wrap {
  max-width: 1160px;
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px))
}

section {
  padding-block: 96px
}

.alt {
  background: var(--bg-2)
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px
}

.lede {
  color: var(--muted);
  font-size: 19px;
  max-width: 60ch
}

h2 {
  font-size: clamp(30px, 4.4vw, 48px)
}

.head {
  display: grid;
  gap: 16px;
  margin-bottom: 56px
}

.mono {
  font-family: var(--mono)
}

/* nav */
header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line)
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 30;
  background: var(--bg)
}

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

.logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px
}

.logo i {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--accent);
  display: block;
  position: relative
}

.logo i::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 2px solid var(--accent-ink);
  border-radius: 50%;
  border-top-color: transparent
}

.logo small {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .06em
}

nav.links {
  display: flex;
  gap: 24px;
  margin-left: auto;
  font-size: 15px
}

nav.links a {
  text-decoration: none;
  color: var(--muted)
}

nav.links a:hover {
  color: var(--fg)
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 15px var(--body);
  padding: 12px 20px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--fg);
  cursor: pointer
}

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink)
}

.btn.primary:hover {
  filter: brightness(1.08)
}

.btn.sm {
  padding: 9px 16px;
  font-size: 14px
}

@media(max-width:860px) {
  nav.links {
    display: none
  }

  .nav .btn {
    margin-left: auto
  }
}

.lang-btn {
  font-family: var(--mono);
  font-size: 13px;
  padding: 8px 12px;
  background: var(--bg-2);
  border-color: var(--line);
  cursor: pointer;
  font-weight: 600
}

.lang-btn:hover {
  color: var(--accent);
  border-color: var(--accent)
}

@media(max-width:860px) {
  nav.links {
    display: none
  }
}

/* hero */
.hero {
  padding-block: 72px 40px
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px
}

.hero h1 {
  font-size: clamp(44px, 8vw, 92px);
  font-weight: 700;
  max-width: 12ch
}

.hero h1 em {
  font-style: normal;
  color: var(--accent)
}

.hero .lede {
  font-size: 21px;
  margin-top: 24px
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px
}

.hero-top {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 48px;
  align-items: end
}

@media(max-width:860px) {
  .hero-top {
    grid-template-columns: 1fr
  }
}

.stat-rail {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line)
}

.stat-rail div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--muted)
}

.stat-rail b {
  font-family: var(--display);
  color: var(--fg);
  font-size: 20px;
  white-space: nowrap
}

.video {
  margin-top: 56px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: var(--card);
  aspect-ratio: 16/9
}

.video video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: var(--card)
}

.chapters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px
}

.chip {
  font: 500 13px var(--mono);
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  cursor: pointer
}

.chip:hover,
.chip[aria-pressed=true] {
  border-color: var(--accent);
  color: var(--accent)
}

/* pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  overflow: hidden
}

.pillar {
  padding: 32px;
  display: grid;
  gap: 12px;
  align-content: start
}

.pillar+.pillar {
  border-left: 1px solid var(--line)
}

.pillar h3 {
  font-size: 24px
}

.pillar p {
  color: var(--muted);
  font-size: 16px
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px
}

.tag {
  font: 400 12px var(--mono);
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent)
}

@media(max-width:860px) {
  .pillars {
    grid-template-columns: 1fr
  }

  .pillar+.pillar {
    border-left: 0;
    border-top: 1px solid var(--line)
  }
}

/* feature rows */
.feature {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 64px;
  align-items: center;
  padding-block: 48px
}

.feature.flip .copy {
  order: 2
}

.feature h3 {
  font-size: clamp(28px, 3.4vw, 40px);
  margin-bottom: 16px
}

.feature .copy p {
  color: var(--muted)
}

.feature .copy ul {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px
}

.feature .copy li {
  padding-left: 24px;
  position: relative;
  font-size: 16px
}

.feature .copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .6em;
  width: 10px;
  height: 2px;
  background: var(--accent)
}

.more {
  display: inline-block;
  margin-top: 24px;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none
}

.more:hover {
  text-decoration: underline
}

@media(max-width:860px) {
  .feature {
    grid-template-columns: 1fr;
    gap: 32px
  }

  .feature.flip .copy {
    order: 0
  }
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 20px;
  min-width: 0
}

.cap {
  font: 400 12px var(--mono);
  color: var(--muted);
  margin-top: 14px
}

/* kanban */
.board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px
}

.col {
  background: var(--bg-2);
  border-radius: 10px;
  padding: 10px;
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 210px;
  min-width: 0
}

.col h4 {
  margin: 0 0 2px;
  font: 500 12px var(--body);
  display: flex;
  justify-content: space-between;
  color: var(--muted)
}

.item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  font-size: 13px;
  line-height: 1.3
}

.item .id {
  font: 400 10.5px var(--mono);
  color: var(--muted);
  display: block;
  margin-bottom: 3px
}

.item .ai {
  font: 500 10px var(--mono);
  background: var(--accent-soft);
  color: var(--accent);
  padding: 1px 6px;
  border-radius: 4px;
  float: right
}

@media(max-width:520px) {
  .board {
    grid-template-columns: repeat(2, 1fr)
  }
}

/* DoD */
.dod label {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
  cursor: pointer
}

.dod input {
  accent-color: var(--accent);
  width: 17px;
  height: 17px
}

.goalline {
  font: 400 12.5px var(--mono);
  color: var(--accent);
  margin-bottom: 10px
}

/* human gate */
.gate {
  display: grid;
  gap: 14px
}

.q {
  background: var(--amber-soft);
  border: 1px solid color-mix(in srgb, var(--amber) 35%, transparent);
  border-radius: 10px;
  padding: 14px 16px
}

.q small {
  font: 400 11px var(--mono);
  color: var(--amber);
  display: block;
  margin-bottom: 4px;
  letter-spacing: .05em;
  text-transform: uppercase
}

.q b {
  font-family: var(--display);
  font-size: 20px
}

.answers {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap
}

.pill {
  font: 500 11px var(--mono);
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--amber);
  color: var(--card)
}

.pill.g {
  background: var(--accent);
  color: var(--accent-ink)
}

/* loop */
.loop {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px
}

.step {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  display: grid;
  gap: 6px;
  align-content: start
}

.step h4 {
  margin: 0;
  font: 600 17px var(--display)
}

.step span {
  font: 400 11.5px var(--mono);
  color: var(--accent)
}

.step p {
  color: var(--muted);
  font-size: 14.5px
}

@media(max-width:560px) {
  .loop {
    grid-template-columns: 1fr
  }
}

/* SDLC cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  display: grid;
  gap: 10px;
  align-content: start
}

.card svg {
  width: 30px;
  height: 30px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round
}

.card h3 {
  font-size: 21px
}

.card p {
  color: var(--muted);
  font-size: 15.5px
}

@media(max-width:900px) {
  .cards {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media(max-width:600px) {
  .cards {
    grid-template-columns: 1fr
  }
}

/* proof */
.bignums {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: end;
  margin-bottom: 48px
}

.bn b {
  font: 700 clamp(64px, 10vw, 120px)/1 var(--display);
  letter-spacing: -.04em;
  color: var(--amber);
  display: block
}

.bn.g b {
  color: var(--accent)
}

.bn p {
  color: var(--muted);
  margin-top: 8px
}

.plus {
  font: 400 40px var(--display);
  color: var(--muted);
  padding-bottom: 36px
}

@media(max-width:640px) {
  .bignums {
    grid-template-columns: 1fr
  }

  .plus {
    display: none
  }
}

.bars {
  display: grid;
  gap: 22px
}

.bar {
  display: grid;
  grid-template-columns: 150px 1fr 70px;
  gap: 16px;
  align-items: center
}

.bar .l b {
  display: block;
  font-size: 15px
}

.bar .l span {
  font-size: 12.5px;
  color: var(--muted);
  font-family: var(--mono)
}

.track {
  height: 16px;
  background: var(--bg-2);
  border-radius: 3px;
  position: relative
}

.fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--accent);
  border-radius: 3px 0 0 3px
}

.range {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 0 3px 3px 0;
  background: repeating-linear-gradient(135deg, var(--accent) 0 2px, transparent 2px 6px);
  opacity: .7
}

.bar.a .fill {
  background: var(--amber)
}

.bar.a .range {
  background: repeating-linear-gradient(135deg, var(--amber) 0 2px, transparent 2px 6px)
}

.val {
  font: 700 20px var(--display);
  text-align: right;
  white-space: nowrap
}

.axis {
  display: grid;
  grid-template-columns: 150px 1fr 70px;
  gap: 16px;
  margin-top: 10px;
  font: 400 11px var(--mono);
  color: var(--muted)
}

.axis div {
  display: flex;
  justify-content: space-between
}

@media(max-width:620px) {

  .bar,
  .axis {
    grid-template-columns: 1fr 64px
  }

  .bar .l {
    grid-column: 1/-1
  }

  .axis>:first-child {
    display: none
  }
}

/* case studies */
.cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px
}

.case {
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 24px;
  display: grid;
  gap: 10px;
  background: var(--card)
}

.case b {
  font: 600 18px var(--display)
}

.case p {
  color: var(--muted);
  font-size: 15px
}

@media(max-width:860px) {
  .cases {
    grid-template-columns: 1fr
  }
}

/* faq */
.faq {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px
}

@media(max-width:860px) {
  .faq {
    grid-template-columns: 1fr;
    gap: 32px
  }
}

details {
  border-top: 1px solid var(--line);
  padding: 20px 0
}

details:last-of-type {
  border-bottom: 1px solid var(--line)
}

summary {
  font: 600 19px var(--display);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px
}

summary::-webkit-details-marker {
  display: none
}

summary::after {
  content: "+";
  color: var(--accent);
  font-size: 24px;
  line-height: 1
}

details[open] summary::after {
  content: "–"
}

details p {
  color: var(--muted);
  margin-top: 12px;
  max-width: 62ch
}

/* cta + footer */
.final {
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 20px;
  padding: clamp(32px, 6vw, 72px);
  display: grid;
  gap: 20px
}

.final h2 {
  font-size: clamp(34px, 5.4vw, 60px);
  max-width: 16ch
}

.final p {
  opacity: .85;
  max-width: 52ch
}

.final .btn {
  background: var(--accent-ink);
  color: var(--accent);
  border-color: transparent;
  width: fit-content
}

.final .btn.ghost {
  background: transparent;
  color: var(--accent-ink);
  border-color: color-mix(in srgb, var(--accent-ink) 50%, transparent)
}

.demo-form {
  display: grid;
  gap: 12px;
  max-width: 620px;
  margin-top: 4px
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px
}

@media(max-width:640px) {
  .form-row {
    grid-template-columns: 1fr
  }
}

.demo-input {
  font: 400 15px var(--body);
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--accent-ink) 35%, transparent);
  background: color-mix(in srgb, var(--accent-ink) 12%, transparent);
  color: var(--accent-ink);
  outline: none;
  transition: border-color .15s ease, background .15s ease
}

.demo-input::placeholder {
  color: color-mix(in srgb, var(--accent-ink) 70%, transparent)
}

.demo-input:focus {
  border-color: var(--accent-ink);
  background: color-mix(in srgb, var(--accent-ink) 22%, transparent)
}

.form-feedback {
  font: 500 13.5px var(--mono);
  min-height: 20px
}

.form-feedback.success {
  color: #d1fae5
}

.form-feedback.error {
  color: #fecaca
}

footer {
  padding-block: 56px 40px;
  border-top: 1px solid var(--line);
  margin-top: 96px
}

.fgrid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  font-size: 15px
}

.fgrid h5 {
  margin: 0 0 12px;
  font: 500 12px var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted)
}

.fgrid a {
  display: block;
  text-decoration: none;
  color: var(--fg);
  padding: 3px 0
}

.fgrid a:hover {
  color: var(--accent)
}

.legal {
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px
}

@media(max-width:760px) {
  .fgrid {
    grid-template-columns: 1fr 1fr
  }
}

.tpl {
  background: var(--amber-soft);
  color: var(--amber);
  font: 400 12px var(--mono);
  text-align: center;
  padding: 8px 16px
}

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