/* Putt landing. Palette: a putting green, a white ball, a yellow pin flag. */
:root {
  --deep: #0E3B2C;
  --green: #1F6B4A;
  --turf: #E2EBD6;
  --chalk: #FAFBF6;
  --flag: #F5C518;
  --ink: #0C1F17;
  --muted: #4C6157;
  --rule: #C9D6C2;
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --edge: max(0px, calc((100vw - 1440px) / 2));
  --rail: clamp(52px, 13vw, 190px);
  --gutter: clamp(20px, 5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--chalk);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  overflow-x: hidden;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--flag); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--flag); color: var(--ink); padding: 8px 14px; border-radius: 6px; z-index: 10; }
.skip:focus { left: 8px; }

h1, h2, h3 { font-family: var(--display); letter-spacing: -0.025em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.6vw, 5.5rem); line-height: 0.98; font-weight: 700; letter-spacing: -0.035em; max-width: 13em; }
h2 { font-size: clamp(2rem, 4.4vw, 3.5rem); line-height: 1.02; font-weight: 700; }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1.15; font-weight: 650; }

/* ---------- Page frame and the putting line ---------- */
#course { position: relative; }
#line { position: absolute; inset: 0; pointer-events: none; z-index: 2; overflow: visible; display: none; }
.has-line #line { display: block; }
.line-base { fill: none; stroke: #8FA596; stroke-width: 1.5; stroke-dasharray: 2 7; stroke-linecap: round; }
.line-done { fill: none; stroke: var(--flag); stroke-width: 2.5; stroke-linecap: round; }
.ball circle { fill: #fff; stroke: var(--ink); stroke-width: 1.5; transition: transform .35s ease-in, opacity .35s ease-in; transform-origin: center; transform-box: fill-box; }
.ball-shadow { fill: rgba(12, 31, 23, .22); transition: opacity .2s; }
.sunk .ball circle { transform: scale(.2) translateY(14px); opacity: 0; }
.sunk .ball-shadow { opacity: 0; }

.band { position: relative; padding: clamp(72px, 10vw, 140px) 0; }
.band-deep { background: var(--deep); color: var(--chalk); }
.band-chalk { background: var(--chalk); }
.band-turf { background: var(--turf); }
.col {
  position: relative;
  z-index: 3;
  margin-left: calc(var(--edge) + var(--rail));
  margin-right: calc(var(--edge) + var(--gutter));
  max-width: 1120px;
}
.intro { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; max-width: 34em; margin-top: 20px; color: var(--muted); }
.band-deep .intro { color: #C4D6C9; }

.way {
  position: absolute;
  left: calc(var(--edge) + var(--rail) * var(--x, .5));
  top: var(--y, 50%);
  width: 9px; height: 9px; margin: -4.5px;
  border-radius: 50%;
  border: 1.5px solid #8FA596;
  background: var(--chalk);
  z-index: 1;
}
.band-deep .way { background: var(--deep); }
.band-turf .way { background: var(--turf); }
.way-tee, .final > .way { opacity: 0; }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-block;
  background: var(--flag);
  color: var(--ink);
  font: 600 1.05rem/1 var(--body);
  text-decoration: none;
  padding: 17px 26px;
  border-radius: 999px;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: #FFD633; transform: translateY(-2px); }
.btn-small { padding: 11px 18px; font-size: .95rem; }
.btn-dark { background: var(--deep); color: var(--chalk); }
.btn-dark:hover { background: var(--green); }
.link { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; font-weight: 500; }
.link:hover { text-decoration-color: var(--flag); }

/* ---------- Hero ---------- */
.hero { padding-top: 0; min-height: min(100svh, 920px); display: flex; flex-direction: column; overflow: hidden; }
.contours { position: absolute; right: -14%; top: 50%; width: min(92vh, 78vw); aspect-ratio: 1; transform: translateY(-46%); color: #1C5A40; }
.nav {
  position: relative; z-index: 4;
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px calc(var(--edge) + var(--gutter)) 0 calc(var(--edge) + var(--gutter));
}
.nav ul { display: flex; align-items: center; gap: clamp(14px, 2.6vw, 36px); }
.nav a:not(.btn):not(.mark) { text-decoration: none; font-size: .98rem; }
.nav a:not(.btn):not(.mark):hover { text-decoration: underline; text-underline-offset: 5px; }
.nav .lang a { border: 1px solid #3C7A5E; border-radius: 999px; padding: 7px 13px; }
.nav .lang a:hover { border-color: var(--chalk); text-decoration: none; }
.mark { display: inline-flex; align-items: center; gap: 9px; font: 750 1.7rem/1 var(--display); letter-spacing: -0.04em; text-decoration: none; }
.mark-ball { width: 15px; height: 15px; border-radius: 50%; background: var(--chalk); box-shadow: inset -2px -2px 0 rgba(12, 31, 23, .18); }
.hero-col { margin-top: auto; margin-bottom: auto; padding: 64px 0 40px; }
.lede { font-size: clamp(1.15rem, 1.7vw, 1.4rem); line-height: 1.5; max-width: 31em; margin-top: 30px; color: #D5E3D8; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 40px; }

/* ---------- What we build ---------- */
.cap {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  padding: clamp(44px, 6vw, 84px) 0;
  border-top: 1px solid var(--rule);
}
.cap:first-of-type { margin-top: clamp(44px, 6vw, 80px); }
.cap:last-of-type { padding-bottom: 0; }
.cap-text p { margin-top: 16px; max-width: 30em; }
.cap-text .proof { color: var(--green); font-weight: 500; padding-left: 16px; border-left: 3px solid var(--flag); }

.fig { background: #fff; border: 1px solid var(--rule); border-radius: 18px; padding: clamp(18px, 2.6vw, 30px); font-size: .95rem; line-height: 1.4; }
.fig figcaption { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--rule); color: var(--muted); font-size: .88rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.chips li { background: var(--turf); border-radius: 999px; padding: 4px 11px; font-size: .84rem; white-space: nowrap; }

/* call */
.wave { display: flex; align-items: center; gap: 3px; height: 54px; margin-bottom: 20px; }
.wave i { flex: 1; min-width: 2px; background: var(--green); border-radius: 2px; opacity: .85; }
.call li { display: grid; grid-template-columns: 3.2em 1fr; gap: 12px; padding: 9px 0; border-top: 1px dashed var(--rule); }
.call li:first-child { border-top: 0; }
.call time { font-variant-numeric: tabular-nums; color: var(--muted); }
.call li:last-child span { font-weight: 600; }

/* chat */
.fig-chat { background: #EFEADF; display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 86%; padding: 11px 14px; border-radius: 14px; }
.bubble-out { align-self: flex-end; background: #D5F0C2; border-bottom-right-radius: 4px; }
.bubble-in { align-self: flex-start; background: #fff; border-bottom-left-radius: 4px; }
.fig-chat figcaption { border-top-color: #D9D1BE; }

/* pipeline */
.fig-pipe { display: grid; grid-template-columns: auto auto 1fr; gap: 16px; align-items: center; }
.fig-pipe figcaption { grid-column: 1 / -1; margin-top: 4px; }
.sources li { border: 1px solid var(--rule); border-radius: 8px; padding: 6px 10px; margin: 6px 0; font-size: .86rem; }
.pipe-mid { display: flex; flex-direction: column; gap: 6px; }
.pipe-mid span { background: var(--deep); color: var(--chalk); border-radius: 999px; padding: 6px 13px; font-size: .84rem; text-align: center; }
.mini { width: 100%; border-collapse: collapse; font-size: .84rem; }
.mini th { text-align: left; font-weight: 600; color: var(--muted); padding: 0 6px 8px; }
.mini td { padding: 8px 6px; border-top: 1px solid var(--rule); white-space: nowrap; }
.mini i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.mini .ok { background: var(--green); }
.mini .warn { background: var(--flag); }

/* funnel */
.fig-funnel .bar { width: var(--w); min-width: 11.5em; background: var(--turf); border-radius: 8px; padding: 13px 14px; margin: 0 auto 8px; text-align: center; }
.fig-funnel .bar:nth-child(2) { background: #BFD6B4; }
.fig-funnel .bar:nth-child(3) { background: var(--green); color: #fff; }
.fig-funnel .bar-final { background: var(--flag); font-weight: 600; margin-top: 18px; position: relative; }
.fig-funnel .bar-final::before { content: ""; position: absolute; left: 50%; top: -17px; height: 14px; border-left: 2px dashed var(--green); }

/* leads */
.leads li { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(40px, 1fr) 2em minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--rule); }
.leads li:first-child { border-top: 0; }
.lead-name { font-weight: 500; }
.score { height: 8px; border-radius: 4px; background: linear-gradient(to right, var(--green) var(--s), var(--turf) var(--s)); }
.leads b { font-variant-numeric: tabular-nums; text-align: right; }
.leads em { font-style: normal; color: var(--muted); font-size: .86rem; }
.leads li:first-child em { color: var(--green); font-weight: 600; }
.leads li:last-child { opacity: .55; }

/* dashboard */
.ask { border: 1.5px solid var(--ink); border-radius: 10px; padding: 11px 14px; font-weight: 500; }
.spark { width: 100%; height: 84px; margin: 16px 0 10px; display: block; }
.spark-area { fill: var(--turf); }
.spark-line { fill: none; stroke: var(--green); stroke-width: 2.5; vector-effect: non-scaling-stroke; }

/* ---------- How we work ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); margin-top: clamp(44px, 6vw, 72px); }
.steps li { counter-increment: step; border-top: 2px solid var(--deep); padding-top: 18px; }
.steps li::before { content: counter(step); display: block; font: 700 clamp(2.6rem, 5vw, 4rem)/1 var(--display); color: var(--green); margin-bottom: 14px; }
.steps p { margin-top: 10px; font-size: 1rem; }

/* ---------- Who it's for ---------- */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 6vw, 96px); margin-top: clamp(40px, 5vw, 64px); }
.pair p { margin-top: 12px; max-width: 26em; color: var(--muted); }
.ticks { margin-top: 22px; }
.ticks li { position: relative; padding: 12px 0 12px 30px; border-top: 1px solid var(--rule); }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 1.15em; width: 11px; height: 11px; border-radius: 50%; background: var(--green); }

/* ---------- Where it runs ---------- */
.stack-col { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.layers { display: flex; flex-direction: column; gap: 8px; }
.layer { display: grid; grid-template-columns: minmax(0, 11em) 1fr; gap: 16px; align-items: baseline; border: 1px solid #2C6B50; border-radius: 12px; padding: 16px 18px; }
.layer b { font-weight: 600; }
.layer span { color: #C4D6C9; font-size: .96rem; }
.layer-putt { background: var(--flag); border-color: var(--flag); color: var(--ink); }
.layer-putt span { color: var(--ink); }

/* ---------- Contact: the cup ---------- */
.final { text-align: center; padding-top: 0; }
.green { position: relative; height: clamp(250px, 32vw, 360px); }
.cup { position: absolute; left: 50%; bottom: 34px; width: 58px; height: 18px; margin-left: -29px; border-radius: 50%; background: #082A1F; box-shadow: 0 0 0 46px rgba(31, 107, 74, .13), 0 0 0 110px rgba(31, 107, 74, .07); }
.way-cup { left: 50%; top: 50%; opacity: 0; }
.pin { position: absolute; left: 50%; bottom: 8px; width: 3px; height: 150px; margin-left: -1.5px; background: var(--ink); border-radius: 2px; transform-origin: bottom center; }
.pin::after { content: ""; position: absolute; left: 3px; top: 2px; border-left: 46px solid var(--flag); border-top: 15px solid transparent; border-bottom: 15px solid transparent; }
.sunk .pin { animation: sway 1.1s ease-out 1; }
@keyframes sway { 20% { transform: rotate(5deg); } 50% { transform: rotate(-3deg); } 80% { transform: rotate(1.5deg); } }
.final-text { position: relative; z-index: 3; padding: 44px var(--gutter) 0; }
.final-text h2 { font-size: clamp(2.3rem, 5.6vw, 4.5rem); }
.final-text p { max-width: 30em; margin: 20px auto 0; font-size: 1.15rem; }
.final-text p + p { margin-top: 34px; }

/* ---------- Footer ---------- */
.foot { background: var(--deep); color: #C4D6C9; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 30px; padding: 30px calc(var(--edge) + var(--gutter)); font-size: .95rem; }
.foot .mark { color: var(--chalk); font-size: 1.4rem; }

/* ---------- Small screens ---------- */
@media (max-width: 900px) {
  .cap, .stack-col { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  :root { --rail: 44px; --gutter: 18px; }
  .nav ul li:not(:last-child):not(.lang) { display: none; }
  .contours { right: -40%; width: 120vw; opacity: .7; }
  .pair, .steps { grid-template-columns: minmax(0, 1fr); }
  .fig-pipe { grid-template-columns: minmax(0, 1fr); }
  .pipe-mid { flex-direction: row; justify-content: center; }
  .sources { display: flex; flex-wrap: wrap; gap: 6px; }
  .sources li { margin: 0; }
  .leads li { grid-template-columns: minmax(0, 1.4fr) minmax(30px, .8fr) 2em; }
  .leads em { grid-column: 1 / -1; margin-top: -8px; }
  .layer { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .ball circle { r: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .ball circle, .ball-shadow { transition: none; }
  .sunk .pin { animation: none; }
}
