/* Söhne (Klim Type Foundry) — test licence files; swap for licensed webfonts before launch */
@font-face { font-family: "Sohne"; src: url("../font/TestSöhne-Extraleicht.otf") format("opentype"); font-weight: 200; font-style: normal; font-display: swap; }
@font-face { font-family: "Sohne"; src: url("../font/TestSöhne-ExtraleichtKursiv.otf") format("opentype"); font-weight: 200; font-style: italic; font-display: swap; }
@font-face { font-family: "Sohne"; src: url("../font/TestSöhne-Leicht.otf") format("opentype"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Sohne"; src: url("../font/TestSöhne-LeichtKursiv.otf") format("opentype"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Sohne"; src: url("../font/TestSöhne-Buch.otf") format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Sohne"; src: url("../font/TestSöhne-BuchKursiv.otf") format("opentype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Sohne"; src: url("../font/TestSöhne-Kräftig.otf") format("opentype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Sohne"; src: url("../font/TestSöhne-KräftigKursiv.otf") format("opentype"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Sohne"; src: url("../font/TestSöhne-Halbfett.otf") format("opentype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Sohne"; src: url("../font/TestSöhne-HalbfettKursiv.otf") format("opentype"); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Sohne"; src: url("../font/TestSöhne-Dreiviertelfett.otf") format("opentype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Sohne"; src: url("../font/TestSöhne-DreiviertelfettKursiv.otf") format("opentype"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Sohne"; src: url("../font/TestSöhne-Fett.otf") format("opentype"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Sohne"; src: url("../font/TestSöhne-FettKursiv.otf") format("opentype"); font-weight: 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Sohne"; src: url("../font/TestSöhne-Extrafett.otf") format("opentype"); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Sohne"; src: url("../font/TestSöhne-ExtrafettKursiv.otf") format("opentype"); font-weight: 900; font-style: italic; font-display: swap; }

/* ==========================================================
   Jackledger — Marketing site (light theme)
   Brand palette
     --ink    #0F1A1A   deep ink: text, logo wordmark
     --sand   #D9D6CC   warm sand: logo on moss, soft highlights
     --moss   #55634A   moss green: the one accent (logo triangle, buttons, icons)
     --paper  #F8F7F4   paper
     --white  #FFFFFF   main background
   Derived neutrals (Ink laid over White, so the greys share the logo's
   cool green-black undertone instead of reading warm or blue)
     --grey   #F3F4F4   Ink 5% on White: alternating section bands
   ========================================================== */

:root {
  --ink: #0F1A1A;
  --sand: #D9D6CC;
  --moss: #55634A;
  --paper: #F8F7F4;
  --white: #FFFFFF;
  --grey: #F3F4F4;

  --ink-80: rgba(15, 26, 26, 0.8);
  --ink-60: rgba(15, 26, 26, 0.66);
  --ink-20: rgba(15, 26, 26, 0.2);
  --ink-10: rgba(15, 26, 26, 0.1);
  --moss-10: rgba(85, 99, 74, 0.1);

  --font-display: "Sohne", system-ui, sans-serif;
  --font-body: "Sohne", system-ui, sans-serif;
  --font-accent: "Sohne", system-ui, sans-serif;

  --radius: 18px;
  --container: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
h1 em, h2 em, blockquote em {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 300;
  color: var(--moss);
}
p { margin: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--moss { background: var(--moss); color: var(--white); }
.btn--moss:hover { background: #637357; }
.btn--ghost { color: var(--ink); border-color: var(--ink-20); background: var(--white); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--small { padding: 10px 18px; font-size: 15px; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 18px;
  display: inline-flex; align-items: center; gap: 10px;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--moss);
  box-shadow: 0 0 0 4px rgba(85, 99, 74, 0.2);
  animation: pulse 2.4s infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(85, 99, 74, 0); } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: 20px 0;
  transition: background .3s, padding .3s, box-shadow .3s;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; }
.nav__brand { display: block; }
.logo { height: 30px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 32px; font-size: 15px; color: var(--ink); }
.nav__links a:not(.btn) { opacity: .75; transition: opacity .2s; }
.nav__links a:not(.btn):hover { opacity: 1; }

.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 14px 0;
  box-shadow: 0 1px 0 var(--ink-10);
}

.nav__toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 9px; right: 9px; height: 2px; background: var(--ink); transition: transform .3s, top .3s; }
.nav__toggle span:first-child { top: 15px; }
.nav__toggle span:last-child { top: 23px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--white);
  color: var(--ink);
  padding: 170px 0 120px;
  overflow: hidden;
}
.hero__glow {
  position: absolute; width: 900px; height: 900px; right: -300px; top: -250px;
  background: radial-gradient(circle, rgba(85, 99, 74, 0.2), transparent 62%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--ink-10) 1px, transparent 1px), linear-gradient(90deg, var(--ink-10) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 70%);
  opacity: .5;
}
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(42px, 5.6vw, 72px); font-weight: 500; color: var(--ink); margin-bottom: 26px; }
.lede { font-size: 19px; color: var(--ink-60); max-width: 540px; margin-bottom: 36px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero__points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 14px; color: var(--ink-60); }
.hero__points li { display: flex; align-items: center; gap: 8px; }
.hero__points li::before {
  content: ""; width: 0; height: 0;
  border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 9px solid var(--moss);
}

/* Hero visual */
.hero__visual { position: relative; padding: 30px 0 30px 30px; }
.layer {
  position: absolute; border-radius: 24px; border: 1px solid var(--ink-10);
}
.layer--back { inset: 0 40px 60px 0; background: rgba(85, 99, 74, 0.14); transform: rotate(-4deg); }
.layer--mid { inset: 14px 20px 36px 14px; background: var(--grey); transform: rotate(-2deg); }

.chat {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  border-radius: 22px;
  border: 1px solid var(--ink-10);
  box-shadow: 0 40px 80px -30px rgba(15, 26, 26, .35);
  overflow: hidden;
}
.chat__head {
  display: flex; gap: 12px; align-items: center;
  padding: 18px 22px;
  background: var(--white);
  border-bottom: 1px solid var(--ink-10);
  font-size: 15px;
}
.chat__head strong { display: block; font-family: var(--font-display); font-weight: 600; }
.chat__status { font-size: 12.5px; color: var(--ink-60); display: flex; align-items: center; gap: 6px; }
.chat__status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--moss); }
.chat__avatar {
  width: 38px; height: 38px; border-radius: 12px;
  background: var(--ink);
  display: grid; place-items: center;
}
.chat__avatar svg { width: 18px; height: 18px; color: #7d8f6d; }
.chat__body { padding: 22px; display: flex; flex-direction: column; gap: 12px; min-height: 380px; font-size: 14.5px; line-height: 1.5; }
.msg { max-width: 86%; padding: 12px 16px; border-radius: 16px; opacity: 0; transform: translateY(8px); animation: rise .6s var(--ease) forwards; }
.msg--user { align-self: flex-end; background: var(--ink); color: var(--paper); border-bottom-right-radius: 4px; }
.msg--ai { align-self: flex-start; background: var(--white); border: 1px solid var(--ink-10); border-bottom-left-radius: 4px; }
.msg:nth-child(1) { animation-delay: .3s; }
.msg:nth-child(2) { animation-delay: 1.1s; }
.msg:nth-child(3) { animation-delay: 2.1s; }
.msg:nth-child(4) { animation-delay: 2.9s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip { font-size: 12.5px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--ink-10); background: var(--paper); }
.chip--primary { background: var(--moss); color: var(--white); border-color: var(--moss); }
.msg--action { background: var(--moss-10); border-color: rgba(85, 99, 74, 0.25); display: grid; gap: 6px; }
.action-row { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.tick {
  flex: none; width: 0; height: 0;
  border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 9px solid var(--moss);
}
.src { margin-left: auto; flex: none; font-size: 11px; font-weight: 500; padding: 2px 8px; border-radius: 999px; background: var(--white); border: 1px solid var(--ink-10); color: var(--ink-60); }

/* ---------- Strip ---------- */
.strip { background: var(--white); border-top: 1px solid var(--ink-10); color: var(--ink-60); padding: 26px 0; }
.strip__inner { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; }
.strip p { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-family: var(--font-display); font-weight: 500; }
.strip ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.strip li { font-size: 14px; padding: 6px 14px; border-radius: 999px; background: var(--grey); border: 1px solid var(--ink-10); color: var(--ink-80); }

/* ---------- Sections ---------- */
.section { padding: 130px 0; }
.section--white { background: var(--white); }
.section--grey { background: var(--grey); border-top: 1px solid var(--ink-10); border-bottom: 1px solid var(--ink-10); }
.section h2 { font-size: clamp(34px, 4.2vw, 54px); font-weight: 500; }
.section__head { margin-bottom: 64px; max-width: 760px; }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.split__body { display: grid; gap: 20px; font-size: 18px; color: var(--ink-80); padding-top: 40px; }
.split__intro { margin-top: 24px; font-size: 18px; color: var(--ink-80); max-width: 480px; }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 90px; }
.pillar {
  padding: 36px 32px 40px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--ink-10);
  transition: transform .35s var(--ease), box-shadow .35s;
}
.pillar:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(15, 26, 26, .25); }
.pillar__num { font-family: var(--font-accent); font-style: italic; font-weight: 300; font-size: 26px; color: var(--moss); }
.pillar h3 { font-size: 26px; font-weight: 600; margin: 34px 0 12px; }
.pillar p { color: var(--ink-60); }

/* Perimeter (bank-owned environment around the stack) */
.perimeter {
  position: relative;
  margin-bottom: 90px;
  padding: 40px 22px 22px;
  border-radius: calc(var(--radius) + 8px);
  border: 1.5px dashed var(--ink-20);
  background: var(--grey);
}
.perimeter__label {
  position: absolute; top: -12px; left: 24px;
  padding: 2px 12px;
  background: var(--white);
  font-family: var(--font-display); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 8px;
}
.perimeter__label::before {
  content: ""; width: 0; height: 0;
  border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 9px solid var(--moss);
}

/* Stack diagram */
.stack { display: grid; gap: 14px; }
.stack__row {
  display: grid; grid-template-columns: 170px 1fr; align-items: center; gap: 24px;
  padding: 22px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--ink-10);
  background: var(--white);
}
.stack__label { font-family: var(--font-display); font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-60); }
.stack__items { display: flex; flex-wrap: wrap; gap: 10px; }
.stack__items span { padding: 8px 16px; border-radius: 10px; background: var(--grey); border: 1px solid var(--ink-10); font-size: 15px; }
.stack__row--jl {
  background: linear-gradient(135deg, var(--moss), #3f4b37);
  border-color: var(--moss);
  padding: 34px 26px;
  box-shadow: 0 30px 70px -30px rgba(85, 99, 74, 0.6);
  position: relative;
}
.stack__row--jl .stack__label { color: var(--paper); }
.stack__core { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.stack__core img { height: 34px; width: auto; }
.stack__modules { display: flex; flex-wrap: wrap; gap: 8px; }
.stack__modules span { padding: 7px 14px; border-radius: 999px; font-size: 14px; color: var(--paper); border: 1px solid rgba(248, 247, 244, 0.3); background: rgba(15, 26, 26, 0.18); }
.stack__row--systems { border-style: dashed; border-color: var(--ink-20); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 1px solid var(--ink-10); padding-top: 28px; }
.steps li::before { content: "0" counter(step); display: block; font-family: var(--font-accent); font-style: italic; font-weight: 300; font-size: 28px; color: var(--moss); margin-bottom: 14px; }
.steps h3 { font-size: 24px; font-weight: 600; margin-bottom: 10px; }
.steps p { color: var(--ink-60); }

/* Tabs + cards */
.tabs { display: inline-flex; padding: 5px; border-radius: 999px; background: var(--white); border: 1px solid var(--ink-10); }
.tab { border: 0; background: none; padding: 10px 20px; border-radius: 999px; font: 500 15px var(--font-display); color: var(--ink-60); cursor: pointer; transition: background .25s, color .25s; }
.tab.is-active { background: var(--ink); color: var(--white); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards[hidden] { display: none; }
.card {
  padding: 32px 28px 36px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--ink-10);
  transition: transform .35s var(--ease), border-color .35s;
  animation: rise .5s var(--ease) both;
}
.card:hover { transform: translateY(-6px); border-color: var(--moss); }
.card__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--moss-10); display: grid; place-items: center; margin-bottom: 40px; }
.card__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--moss); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 21px; font-weight: 600; margin-bottom: 10px; }
.card p { font-size: 15.5px; color: var(--ink-60); }

/* Principle */
.principle { text-align: center; max-width: 900px; }
.principle__mark { color: var(--moss); display: flex; justify-content: center; margin-bottom: 28px; }
.principle__mark svg { width: 30px; height: 30px; }
.principle blockquote { margin: 0 0 28px; font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 42px); line-height: 1.25; font-weight: 500; letter-spacing: -0.02em; }
.principle__by { font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-60); font-family: var(--font-display); }

/* Trust */
.trust { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.trust li { padding: 28px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--ink-10); }
.trust h3 { font-size: 19px; font-weight: 600; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.trust h3::before { content: ""; flex: none; width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 10px solid var(--moss); }
.trust p { font-size: 15.5px; color: var(--ink-60); }

/* CTA */
.cta { background: var(--white); color: var(--ink); padding: 110px 0; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; width: 700px; height: 700px; left: -250px; bottom: -400px; background: radial-gradient(circle, rgba(85, 99, 74, 0.18), transparent 65%); }
.cta__inner { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.cta h2 { font-size: clamp(34px, 4.2vw, 52px); font-weight: 500; margin-bottom: 14px; }
.cta p { color: var(--ink-60); font-size: 18px; }
.cta__form { display: flex; flex-wrap: wrap; gap: 10px; padding: 8px; border-radius: 999px; background: var(--grey); border: 1px solid var(--ink-10); }
.cta__form:focus-within { border-color: var(--moss); }
.cta__form input {
  flex: 1; min-width: 180px; background: none; border: 0; outline: 0;
  padding: 0 18px; color: var(--ink); font: 16px var(--font-body);
}
.cta__form input::placeholder { color: var(--ink-60); }
.cta__note { flex-basis: 100%; font-size: 14px; padding: 0 18px; color: var(--moss); }
.cta__note:empty { display: none; }

/* Footer */
.footer { background: var(--grey); color: var(--ink-60); border-top: 1px solid var(--ink-10); padding: 64px 0 32px; font-size: 15px; }
.footer__inner { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; padding-bottom: 48px; }
.footer__brand img { height: 28px; width: auto; margin-bottom: 14px; }
.footer__brand p + p { margin-top: 4px; font-size: 14px; }
.footer__cols { display: flex; gap: 72px; }
.footer__cols h4 { color: var(--ink); font-size: 14px; font-weight: 600; margin-bottom: 14px; letter-spacing: .04em; }
.footer__cols a { display: block; margin-bottom: 8px; transition: color .2s; }
.footer__cols a:hover { color: var(--moss); }
.footer__legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; border-top: 1px solid var(--ink-10); font-size: 13px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { padding: 140px 0 90px; }
  .hero__grid, .split, .cta__inner { grid-template-columns: 1fr; gap: 48px; }
  .split__body { padding-top: 0; }
  .pillars, .steps, .cards { grid-template-columns: 1fr; }
  .perimeter { padding: 36px 12px 12px; margin-bottom: 64px; }
  .pillars { margin-top: 56px; }
  .section { padding: 90px 0; }
  .stack__row { grid-template-columns: 1fr; gap: 14px; }

  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 0 0 auto 0; top: 0;
    flex-direction: column; align-items: flex-start; gap: 22px;
    padding: 96px 24px 36px;
    background: var(--white);
    box-shadow: 0 20px 40px -20px rgba(15, 26, 26, .2);
    font-size: 20px;
    transform: translateY(-100%);
    transition: transform .4s var(--ease);
    z-index: -1;
  }
  .nav.is-open .nav__links { transform: none; }
  .nav.is-open .nav__toggle span:first-child { top: 19px; transform: rotate(45deg); }
  .nav.is-open .nav__toggle span:last-child { top: 19px; transform: rotate(-45deg); }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .cards, .trust { grid-template-columns: 1fr; }
  .hero__visual { padding: 16px 0 16px 12px; }
  .chat__body { min-height: 0; }
  .perimeter__label { left: 12px; right: 12px; font-size: 11px; }
  .cta__form { border-radius: 20px; }
  .cta__form .btn { width: 100%; justify-content: center; }
  .cta__form input { padding: 12px 14px; }
  .footer__cols { gap: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
