/* Kurvball site: one column of prose on paper beside the field, a fixed panel in Kurvball's greens that holds nothing
   but its colour. Home and News share this file (the top row, the footer, buttons, type); News adds news.css. */
@font-face { font-family: Geist; src: url('/fonts/Geist-normal-400-600.woff2') format('woff2'); font-style: normal; font-weight: 400 600; font-display: swap; }
@font-face { font-family: 'Source Serif 4'; src: url('/fonts/SourceSerif4-normal-400-600.woff2') format('woff2'); font-style: normal; font-weight: 400 600; font-display: swap; }
@font-face { font-family: 'Source Serif 4'; src: url('/fonts/SourceSerif4-italic-400-600.woff2') format('woff2'); font-style: italic; font-weight: 400 600; font-display: swap; }
:root {
  color-scheme: light;
  --paper: #f7f6f2; --white: #fcfcfa; --ink: #1a1d1b; --body: #3f4742; --muted: #5f6d65; --line: #dcdfd9; --control: #6b7d72; --rim: #9fb0a8;
  --green: #006f62; --accent: #3c9d8e; --deep: #00231f; --deep-raised: #07352f; --mint: #a3d2c9; --light: #f4faf7; --rust: #b4532c; --rust-text: #7a3517;
  /* The field's five stops, top to bottom; a product page sets its own on .field. */
  --f0: #d9ede7; --f1: #a3d2c9; --f2: #3c9d8e; --f3: #0a4a41; --f4: #00231f;
  --serif: 'Source Serif 4', Georgia, serif;
  --sans: Geist, ui-sans-serif, system-ui, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  --read: clamp(1.0625rem, .42vw + 1rem, 1.3125rem);
  --small: .9375rem;
  --gutter: clamp(20px, 4.4vw, 64px);
  --top-h: clamp(76px, 3vw + 56px, 104px);
  --field-w: clamp(400px, 38vw, 680px);
  --field-at: 12px;
  --section: clamp(72px, 8vw, 120px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='.3'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: var(--rim) var(--paper); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--read)/1.52 var(--sans); -webkit-font-smoothing: antialiased; font-kerning: normal; }
::selection { background: var(--mint); color: var(--deep); }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; z-index: 70; top: -70px; left: 16px; padding: 10px 14px; border-radius: 8px; background: var(--white); color: var(--ink); }
.skip-link:focus { top: 12px; }
.visually-hidden, .field-trap { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.arrow { display: inline-flex; vertical-align: -.12em; transition: transform .3s var(--ease-out); }

/* The column. Beside the field it is centred in what the field leaves; on narrow screens it keeps clear of the rail. */
.column { width: min(100%, calc(720px + 2 * var(--gutter))); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 1100px) { .has-field { padding-right: calc(var(--field-w) + var(--field-at)); } }
@media (max-width: 1099px) { .has-field .column { padding-right: calc(var(--gutter) + 12px); } }

/* The top row: the lockup, News, the language switch and a small Book a demo. It scrolls with the page. */
.site-header { height: var(--top-h); display: flex; align-items: center; gap: 16px; padding-top: clamp(6px, 1.4vw, 18px); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; flex: none; color: var(--ink); font-size: 1.0625rem; font-weight: 600; letter-spacing: -.02em; line-height: 1; text-decoration: none; }
.wordmark .mark { width: 28px; height: 28px; }
.top-nav { margin-left: auto; display: flex; align-items: center; gap: clamp(14px, 2.2vw, 28px); font-size: var(--small); }
.top-nav > a:not(.button) { color: var(--muted); text-decoration: none; transition: color .2s ease; }
.top-nav > a:not(.button):hover, .top-nav > a[aria-current="page"] { color: var(--ink); }
.top-nav > a[aria-current="page"] { text-decoration: underline 1px var(--green); text-underline-offset: 6px; }
.lang-switch { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; }
.lang-switch a { padding-block: 10px; text-decoration: none; transition: color .2s ease; }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current="page"] { color: var(--ink); text-decoration: underline 1px var(--green); text-underline-offset: 4px; }

/* Buttons: one deep pill on paper. */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--deep); color: #fffdf5; font: 600 .9375rem/1 var(--sans); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.button:hover { background: var(--deep-raised); }
.button:active { transform: translateY(1px); }
.button:disabled { opacity: .6; cursor: progress; }
.button-small { min-height: 38px; padding: 0 16px; font-size: .875rem; }
.button .arrow { opacity: .8; }

/* The hero: one sentence in the vertical middle of the first viewport, Kurvball's card at its foot. */
.hero { min-height: calc(100svh - var(--top-h)); display: flex; flex-direction: column; padding-bottom: clamp(20px, 4svh, 44px); overflow-x: clip; }
.hero-title { margin-block: auto; padding-block: 7svh 14svh; max-width: 21em; font-family: var(--serif); font-size: clamp(1.75rem, 2.35vw, 2.5rem); font-weight: 400; line-height: 1.16; letter-spacing: -.022em; text-wrap: balance; }
.hero-answer { position: relative; display: inline-block; white-space: nowrap; }
.hero-answer em { color: var(--green); font-style: italic; }
/* The wheel: what a team settles before it builds, on a slow drum whose front face is the answer. When the sentence
   holds one line (the script marks it .is-single) the phrases turn above and below the answer, through a clear band
   around it; when the answer wraps to its own line they show only below, clear of the words above. */
.wheel { --r: 4.6em; --above: 0em; position: absolute; left: 0; top: calc(-1 * var(--above)); width: 16em; height: calc(var(--above) + 6.4em); pointer-events: none; perspective: 26em; perspective-origin: 20% calc(var(--above) + .58em); opacity: 0; animation: wheel-in 1.6s ease 1.1s forwards;
  -webkit-mask-image: linear-gradient(to bottom, transparent 1.6em, #000 2.5em, #000 3.3em, transparent 6.2em); mask-image: linear-gradient(to bottom, transparent 1.6em, #000 2.5em, #000 3.3em, transparent 6.2em); }
.hero-title.is-single .wheel { --above: 3em; -webkit-mask-image: linear-gradient(to bottom, transparent .65em, #000 1.15em, #000 1.45em, transparent 2.15em, transparent 4.95em, #000 5.65em, #000 6.3em, transparent 9.2em); mask-image: linear-gradient(to bottom, transparent .65em, #000 1.15em, #000 1.45em, transparent 2.15em, transparent 4.95em, #000 5.65em, #000 6.3em, transparent 9.2em); }
.drum { position: absolute; left: 0; top: var(--above); width: 100%; height: 1.16em; transform-style: preserve-3d; transform: translateZ(calc(-1 * var(--r))) rotateX(0deg); animation: drum 84s linear infinite; }
.face { position: absolute; left: 0; top: 0; height: 1.16em; color: var(--muted); font-style: normal; white-space: nowrap; backface-visibility: hidden; transform: rotateX(calc(var(--k) * -15deg)) translateZ(var(--r)); }
.wheel.is-paused, .wheel.is-paused .drum { animation-play-state: paused; }
@keyframes drum { to { transform: translateZ(calc(-1 * var(--r))) rotateX(360deg); } }
@keyframes wheel-in { to { opacity: .78; } }

/* Kurvball's card: its tile, where it stands, and the way to the update that says more. */
.kv-card { display: flex; align-items: center; gap: 16px; padding: 12px 22px 12px 12px; border: 1px solid var(--line); border-radius: 22px; background: var(--white); color: var(--ink); text-decoration: none; transition: border-color .25s ease, box-shadow .25s ease; }
.kv-card:hover { border-color: #c5cdc7; box-shadow: 0 24px 44px -30px rgba(0, 35, 31, .42); }
.kv-card-tile { width: 52px; height: 52px; flex: none; border-radius: 13px; box-shadow: 0 8px 16px -10px rgba(0, 35, 31, .6); }
.kv-card-body { flex: 1; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 20px; }
.kv-card-action { display: inline-flex; align-items: center; gap: 6px; color: var(--green); white-space: nowrap; }
.kv-card:hover .arrow, .button:hover .arrow { transform: translateX(3px); }

/* Sections: a heading at reading size in sage, then prose; more room above a section than inside it. */
.section { padding-top: var(--section); }
.hero + .section { padding-top: clamp(28px, 4vw, 56px); }
.prose > * + * { margin-top: 1em; }
.section p { max-width: 64ch; text-wrap: pretty; }
.label { margin-bottom: 1em; color: var(--muted); font: inherit; }
.plan { display: grid; gap: .3em; margin-block: 1.1em 1.5em !important; }
.plan li { display: grid; grid-template-columns: 2em minmax(0, 1fr); }
.plan .n { color: var(--muted); font-variant-numeric: tabular-nums; }
.plan b { font-weight: 500; }
.team { display: grid; gap: 1.5em; margin-top: 1.8em; }
.team h3 { font: inherit; font-weight: 500; }
.team p { margin-top: .25em; color: var(--body); }

/* Book a demo: fields on one hairline each, then the deep pill. */
.demo-form { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 28px; margin-top: 1.8em; }
.field-row { display: grid; gap: 2px; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field-row label { color: var(--muted); font-size: var(--small); }
.field-row input, .field-row textarea { width: 100%; padding: 8px 0 10px; border: 0; border-bottom: 1px solid var(--control); border-radius: 0; background: transparent; color: var(--ink); font: inherit; caret-color: var(--green); transition: border-color .2s ease, box-shadow .2s ease; }
.field-row textarea { min-height: 3.4em; resize: vertical; line-height: 1.45; }
.field-row input::placeholder, .field-row textarea::placeholder { color: var(--muted); opacity: 1; }
.field-row input:focus, .field-row textarea:focus { outline: none; border-bottom-color: var(--green); box-shadow: 0 1px 0 var(--green); }
.field-row .is-invalid { border-bottom-color: var(--rust); box-shadow: 0 1px 0 var(--rust); }
.demo-actions, .demo-fine, .demo-status { grid-column: 1 / -1; }
.demo-actions { margin-top: 4px; }
.demo-fine { color: var(--muted); font-size: var(--small); }
.demo-fine a { color: var(--ink); text-decoration-color: var(--green); text-underline-offset: 3px; }
.demo-status:empty { display: none; }
.demo-status { padding: 12px 14px; border-radius: 10px; background: rgba(60, 157, 142, .12); font-size: var(--small); }
.demo-status.is-error { background: rgba(180, 83, 44, .1); color: var(--rust-text); }
.demo-status a { color: inherit; text-underline-offset: 3px; }

/* The 404 page: Home's sentence, in English then in French, with the ways back. */
.not-found { min-height: calc(100svh - var(--top-h)); display: flex; flex-direction: column; justify-content: center; gap: clamp(48px, 8svh, 88px); padding-block: 6svh 12svh; }
.not-found-title { max-width: 21em; font-family: var(--serif); font-size: clamp(1.75rem, 2.35vw, 2.5rem); font-weight: 400; line-height: 1.16; letter-spacing: -.022em; text-wrap: balance; }
.not-found-title em { color: var(--green); }
.not-found-block > p { margin-top: 14px; color: var(--body); font-size: var(--read); }
.not-found-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.not-found-block > .not-found-links { margin-top: 26px; }
.not-found-links a:not(.button) { color: var(--ink); text-decoration-color: var(--green); text-underline-offset: 4px; }

/* The footer, in mono. */
.site-footer { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-top: var(--section); padding-block: 22px clamp(28px, 4vw, 44px); border-top: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: .8125rem; }
.site-footer nav { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; }
.site-footer nav > a { padding-block: 8px; text-decoration: none; transition: color .2s ease; }
.site-footer nav > a:hover { color: var(--ink); }
.site-footer .lang-switch { font-size: inherit; }

/* The field: a fixed panel beside the column, a slow grain gradient (drawn by the script, this gradient without it)
   that holds nothing but its colour. Under 1100px it is a rail at the window's edge. News articles set the same
   gradient behind their screens (news.css). */
.field { display: none; }
.field { background-color: var(--f4); background-image: var(--grain), linear-gradient(to bottom, var(--f0), var(--f1) 26%, var(--f2) 52%, var(--f3) 78%, var(--f4)); }
@media (min-width: 1100px) {
  .field { position: fixed; z-index: 2; top: var(--field-at); right: var(--field-at); bottom: var(--field-at); display: block; width: var(--field-w); overflow: hidden; border-radius: 16px; isolation: isolate; }
  .field canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1s ease; }
  .field.is-live canvas { opacity: 1; }
}
@media (max-width: 1099px) {
  .has-field .field { position: fixed; z-index: 2; top: 10px; right: 6px; bottom: 10px; display: block; width: 8px; border-radius: 99px; }
  .field canvas { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wheel { display: none; }
}
@media (max-width: 620px) {
  .top-nav .button-small { display: none; }
  .kv-card { align-items: flex-start; }
  .kv-card-body { flex-direction: column; }
  .demo-form { grid-template-columns: minmax(0, 1fr); }
}
