/* Layout concept: courses of stone. Records stack into something solid, so the logo, the product
   window and the feature grid are all built from offset, tightly coursed blocks.
   Colour: petrol and cut stone, with one warm signal reserved for the action to take. */
:root {
  color-scheme: light;
  --ground: oklch(97.6% 0.005 200);
  --surface: oklch(100% 0 0);
  --sunken: oklch(95% 0.007 200);
  --line: oklch(89.5% 0.01 200);
  --line-strong: oklch(60% 0.015 205);
  --ink: oklch(23% 0.03 215);
  --ink-muted: oklch(43% 0.02 215);
  --brand: oklch(36% 0.06 205);
  --brand-wash: oklch(93.5% 0.025 195);
  --settled: oklch(42% 0.09 160);
  --settled-wash: oklch(94% 0.04 160);
  --attention: oklch(45% 0.11 70);
  --attention-wash: oklch(95% 0.05 85);
  --overdue: oklch(47% 0.15 27);
  --overdue-wash: oklch(95% 0.03 27);
  --focus: oklch(55% 0.15 240);

  /* The petrol panels and the signal stay the same in both themes. */
  --petrol: oklch(25% 0.045 212);
  --petrol-raised: oklch(31% 0.05 210);
  --petrol-line: oklch(42% 0.045 208);
  --on-petrol: oklch(98% 0.005 200);
  --on-petrol-muted: oklch(86% 0.022 200);
  --signal: oklch(82% 0.14 78);
  --signal-hover: oklch(87% 0.13 80);
  --on-signal: oklch(22% 0.04 70);

  --display: "Bricolage Grotesque", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  --sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --radius: 16px;
  --radius-sm: 10px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ground: oklch(17.5% 0.02 215);
    --surface: oklch(22% 0.024 215);
    --sunken: oklch(19.5% 0.022 215);
    --line: oklch(32% 0.024 212);
    --line-strong: oklch(60% 0.024 208);
    --ink: oklch(96% 0.006 200);
    --ink-muted: oklch(80% 0.016 205);
    --brand: oklch(82% 0.075 195);
    --brand-wash: oklch(30% 0.04 200);
    --settled: oklch(83% 0.12 160);
    --settled-wash: oklch(30% 0.05 160);
    --attention: oklch(85% 0.12 85);
    --attention-wash: oklch(32% 0.055 80);
    --overdue: oklch(80% 0.11 25);
    --overdue-wash: oklch(31% 0.06 27);
    --focus: oklch(78% 0.12 240);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ground: oklch(17.5% 0.02 215);
  --surface: oklch(22% 0.024 215);
  --sunken: oklch(19.5% 0.022 215);
  --line: oklch(32% 0.024 212);
  --line-strong: oklch(60% 0.024 208);
  --ink: oklch(96% 0.006 200);
  --ink-muted: oklch(80% 0.016 205);
  --brand: oklch(82% 0.075 195);
  --brand-wash: oklch(30% 0.04 200);
  --settled: oklch(83% 0.12 160);
  --settled-wash: oklch(30% 0.05 160);
  --attention: oklch(85% 0.12 85);
  --attention-wash: oklch(32% 0.055 80);
  --overdue: oklch(80% 0.11 25);
  --overdue-wash: oklch(31% 0.06 27);
  --focus: oklch(78% 0.12 240);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -0.028em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 1.55rem + 4.3vw, 4.9rem); line-height: 1.02; }
h2 { font-size: clamp(1.95rem, 1.5rem + 1.9vw, 3.1rem); line-height: 1.07; }
h3 { font: 600 1.15rem/1.3 var(--display); letter-spacing: -0.01em; }
a { color: var(--brand); text-underline-offset: 0.18em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
:target { scroll-margin-top: 6rem; }

.wrap {
  width: min(77rem, 100%);
  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: clamp(3.75rem, 2.5rem + 5vw, 7rem); }
.section__head { display: grid; gap: 0.9rem; max-width: 46rem; }
.section__head p { color: var(--ink-muted); font-size: 1.15rem; line-height: 1.5; }
.kicker { font: 500 0.8125rem/1.3 var(--mono); color: var(--brand); }

.skip { position: absolute; left: 12px; top: -5rem; z-index: 30; padding: 0.6rem 1rem; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px; color: var(--ink); }
.skip:focus { top: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.55rem 1.3rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 1rem/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease, transform 150ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--signal { background: var(--signal); color: var(--on-signal); }
.btn--signal:hover { background: var(--signal-hover); }
.btn--ghost { border-color: var(--petrol-line); color: var(--on-petrol); }
.btn--ghost:hover { background: var(--petrol-raised); }
.btn--small { min-height: 44px; padding-inline: 1.05rem; font-size: 0.95rem; }

/* Floating navigation */
.site-head { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 10px); z-index: 20; margin-top: 10px; }
.site-head__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.3rem 0.35rem 0.3rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 8px 24px -14px oklch(25% 0.045 212 / 0.45);
}
.brand { display: inline-flex; align-items: center; gap: 0.55rem; min-height: 44px; color: var(--ink); font: 700 1.2rem/1 var(--display); letter-spacing: -0.02em; text-decoration: none; }
.brand svg { width: 24px; height: 24px; flex: none; }
.brand__mark { fill: var(--brand); }
.site-nav { display: flex; align-items: center; gap: 0.25rem 1rem; }
.site-nav > a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 0.3rem; color: var(--ink-muted); font-size: 0.95rem; font-weight: 500; text-decoration: none; }
.site-nav > a:not(.btn):hover { color: var(--ink); }

/* Hero */
.hero { padding-top: 14px; }
.hero__panel {
  display: grid;
  gap: clamp(2.5rem, 2rem + 2.5vw, 4rem);
  padding: clamp(2.5rem, 1.75rem + 4vw, 5.25rem) clamp(1.25rem, 0.5rem + 3.5vw, 4.5rem) 0;
  background: var(--petrol);
  border-radius: 24px;
  color: var(--on-petrol);
  overflow: hidden;
}
.hero__copy { display: grid; gap: 1.5rem; max-width: 58rem; }
.hero__copy .lede { max-width: 44rem; color: var(--on-petrol-muted); font-size: clamp(1.15rem, 1.05rem + 0.45vw, 1.4rem); line-height: 1.45; }
.pill { justify-self: start; padding: 0.3rem 0.8rem; border: 1px solid var(--petrol-line); border-radius: 999px; color: var(--on-petrol-muted); font: 500 0.8125rem/1.4 var(--mono); }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.hero__note { color: var(--on-petrol-muted); font-size: 0.95rem; }

/* The product window */
.window { background: var(--surface); border-radius: var(--radius) var(--radius) 0 0; color: var(--ink); box-shadow: 0 -18px 60px -24px oklch(10% 0.03 212 / 0.8); }
.window__bar { display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 1rem; border-bottom: 1px solid var(--line); }
.window__dots { display: flex; gap: 6px; }
.window__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.window__title { color: var(--ink-muted); font-size: 0.875rem; font-weight: 500; }
.window__body { display: grid; grid-template-columns: 11rem minmax(0, 1fr) minmax(0, 19.5rem); }
.side { display: grid; align-content: start; gap: 0.15rem; padding: 1rem 0.75rem; border-right: 1px solid var(--line); color: var(--ink-muted); font-size: 0.9rem; }
.side li { padding: 0.35rem 0.6rem; border-radius: 7px; }
.side .is-current { background: var(--brand-wash); color: var(--ink); font-weight: 600; }
.board { display: grid; align-content: start; gap: 1.1rem; min-width: 0; padding: 1.25rem; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6rem; }
.tile { display: grid; gap: 0.1rem; padding: 0.7rem 0.8rem; background: var(--sunken); border-radius: var(--radius-sm); font-size: 0.8125rem; line-height: 1.3; color: var(--ink-muted); }
.tile b { font: 700 1.6rem/1.15 var(--display); color: var(--ink); }
.tile--urgent { background: var(--overdue-wash); }
.tile--urgent b { color: var(--overdue); }
.rows { display: grid; }
.rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0.2rem 1rem; padding-block: 0.65rem; border-bottom: 1px solid var(--line); }
.rows li:last-child { border-bottom: 0; }
.rows strong { display: block; font-size: 0.95rem; font-weight: 600; }
.rows small { color: var(--ink-muted); font-size: 0.84rem; }
.chip { display: inline-block; padding: 0.12rem 0.55rem; border-radius: 999px; font-size: 0.8rem; font-weight: 600; white-space: nowrap; }
.chip--overdue { background: var(--overdue-wash); color: var(--overdue); }
.chip--soon { background: var(--attention-wash); color: var(--attention); }
.chip--ok { background: var(--settled-wash); color: var(--settled); }
.filed { display: grid; align-content: start; gap: 0.85rem; padding: 1.25rem; background: var(--sunken); }
.filed__head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap; }
.filed__head b { font-size: 0.95rem; }
.fields { display: grid; gap: 0.45rem; font-size: 0.875rem; }
.fields > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 0.75rem; }
.fields dt { color: var(--ink-muted); }
.fields dd { font-weight: 600; text-align: right; }
.filed__next { padding: 0.75rem 0.85rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 0.875rem; }
.filed__next b { display: block; }
.filed__next span { color: var(--ink-muted); }
.code { font-family: var(--mono); font-size: 0.9em; font-weight: 500; font-variant-numeric: tabular-nums; }
.demo-note { margin-top: 0.85rem; color: var(--ink-muted); font-size: 0.9rem; }

/* Facts */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem 2rem; padding-top: 2.75rem; }
.facts li { display: grid; gap: 0.2rem; align-content: start; padding-top: 0.8rem; border-top: 2px solid var(--ink); }
.facts b { font: 600 1.05rem/1.3 var(--display); }
.facts span { color: var(--ink-muted); font-size: 0.95rem; line-height: 1.45; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; margin-top: 3rem; }
.steps li { display: grid; gap: 0.55rem; align-content: start; }
.steps__n { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; margin-bottom: 0.4rem; background: var(--brand-wash); border-radius: 12px; color: var(--brand); font: 500 0.9rem/1 var(--mono); }
.steps p { color: var(--ink-muted); font-size: 1rem; }

/* Feature grid */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.85rem; margin-top: 3rem; }
.cell { display: flex; flex-direction: column; gap: 0.6rem; grid-column: span 2; padding: 1.6rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.cell--half { grid-column: span 3; }
.cell--tall { grid-column: span 3; grid-row: span 2; background: var(--brand-wash); border-color: transparent; }
.cell p { color: var(--ink-muted); font-size: 1rem; }
.cell .sample { margin-top: auto; padding-top: 0.9rem; color: var(--ink); font: 400 0.8125rem/1.55 var(--mono); }
.chat { display: grid; gap: 0.6rem; margin-top: auto; padding-top: 1rem; }
.chat__ask, .chat__answer { padding: 0.8rem 1rem; border-radius: 14px; font-size: 0.975rem; line-height: 1.45; }
.chat__ask { justify-self: end; max-width: 85%; background: var(--petrol); color: var(--on-petrol); border-bottom-right-radius: 4px; }
.chat__answer { background: var(--surface); color: var(--ink); border-bottom-left-radius: 4px; }
.chat__source { display: block; margin-top: 0.45rem; color: var(--brand); font: 500 0.8125rem/1.4 var(--mono); }

/* Status */
.status { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem clamp(2.5rem, 2rem + 3vw, 5rem); align-items: start; }
.checks { display: grid; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.checks li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.4rem 1rem; align-items: center; padding: 0.95rem 1.2rem; border-bottom: 1px solid var(--line); }
.checks li:last-child { border-bottom: 0; }

/* Questions */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.65rem 0.85rem; align-items: start; margin-top: 2.75rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq summary { min-height: 44px; padding: 0.95rem 1.2rem; font-weight: 600; cursor: pointer; }
.faq details p { padding: 0 1.2rem 1.1rem; color: var(--ink-muted); }

/* Join */
.join { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 2.5rem clamp(2.5rem, 2rem + 3vw, 5rem); align-items: start; padding: clamp(1.75rem, 1.25rem + 3.5vw, 4.5rem) clamp(1.25rem, 0.75rem + 3.5vw, 4.5rem); background: var(--petrol); border-radius: 24px; color: var(--on-petrol); }
.join .lede { margin-top: 1rem; color: var(--on-petrol-muted); font-size: 1.15rem; line-height: 1.5; }
.notice { display: grid; gap: 0.6rem; margin-top: 1.5rem; color: var(--on-petrol-muted); font-size: 0.9rem; }
.notice strong { color: var(--on-petrol); }
.notice a { color: var(--on-petrol); }
.form { display: grid; gap: 1.1rem; padding: clamp(1.25rem, 1rem + 1vw, 1.9rem); background: var(--surface); border-radius: var(--radius); color: var(--ink); }
.form__field { display: grid; gap: 0.4rem; }
.form__field label { font-weight: 600; }
.form input[type="email"] { width: 100%; min-height: 48px; padding: 0.6rem 0.85rem; background: var(--ground); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); color: var(--ink); font: 400 1rem/1.4 var(--sans); }
.form__consent { display: grid; grid-template-columns: 1.3rem minmax(0, 1fr); gap: 0.65rem; align-items: start; }
.form__consent input { width: 1.3rem; height: 1.3rem; margin: 0.12rem 0 0; accent-color: var(--brand); }
.form__consent label { font-size: 0.95rem; line-height: 1.45; }
.form .btn { width: 100%; }
/* Off-screen rather than display:none, which some bots check for before filling a field. */
.trap { position: absolute; left: -100vw; width: 1px; height: 1px; overflow: hidden; }

.site-foot { padding-block: 2rem 2.5rem; color: var(--ink-muted); font-size: 0.925rem; }
.site-foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; }

/* Thank-you and error pages */
.message { display: grid; gap: 1.1rem; max-width: 42rem; padding-block: clamp(4rem, 2rem + 9vw, 9rem); }
.message p { color: var(--ink-muted); font-size: 1.15rem; }

@media (max-width: 68rem) {
  .window__body { grid-template-columns: minmax(0, 1fr) minmax(0, 19rem); }
  .side { display: none; }
  .facts, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cell, .cell--half { grid-column: span 3; }
  .cell--tall { grid-column: span 6; grid-row: auto; }
}
@media (max-width: 54rem) {
  .window__body, .status, .faq, .join { grid-template-columns: minmax(0, 1fr); }
  .site-nav > a:not(.btn):not([lang]) { display: none; }
}
@media (max-width: 34rem) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts, .steps { grid-template-columns: minmax(0, 1fr); }
  .cell, .cell--half { grid-column: span 6; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
