/* Layout: asymmetric left-aligned grid; the hero pairs the promise with a workflow that runs on its own,
   needs are a pick-your-situation switcher, and only the workflow and form are raised as objects. */
:root {
  /* Color */
  --bg: #fafbfb;          /* cool paper, slight jade bias */
  --surface: #ffffff;
  --tint: #f1f4f3;
  --ink: #121a1f;         /* deep slate */
  --ink-2: #384750;
  --muted: #64727a;
  --line: #e0e6e5;
  --line-2: #cbd4d3;
  --accent: #0b7a62;      /* jade: things that ran, things to click */
  --accent-soft: #e2f1ec;
  --on-accent: #ffffff;
  --err: #b4392c;
  --shadow: 0 1px 2px rgba(18,26,31,.05), 0 24px 48px -28px rgba(18,26,31,.28);
  /* Type */
  --display: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;  /* condensed width for display */
  --body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;     /* normal width for reading */
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1180px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1315; --surface: #141c1f; --tint: #11181a;
    --ink: #e7eeec; --ink-2: #c0ccc9; --muted: #8b9a98;
    --line: #222d2f; --line-2: #314043;
    --accent: #4fd1ae; --accent-soft: #15352e; --on-accent: #0d1315;
    --err: #f08a7c;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 24px 48px -28px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1315; --surface: #141c1f; --tint: #11181a;
  --ink: #e7eeec; --ink-2: #c0ccc9; --muted: #8b9a98;
  --line: #222d2f; --line-2: #314043;
  --accent: #4fd1ae; --accent-soft: #15352e; --on-accent: #0d1315;
  --err: #f08a7c;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 24px 48px -28px rgba(0,0,0,.7);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.65 var(--body); font-stretch: 100%;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3 { margin: 0; color: var(--ink); text-wrap: balance; }
h1, h2 { font-family: var(--display); font-stretch: 78%; font-weight: 600; letter-spacing: -0.015em; }
h3 { font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap {
  max-width: var(--wrap); margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 30; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 6px; }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 12px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.kicker-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

/* ---------- Buttons & links ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 10px;
  background: var(--ink); color: var(--bg); border: 1px solid var(--ink);
  font: 600 15px/1 var(--body); text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.button:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.button:active { transform: translateY(1px); }
.button:disabled { opacity: .5; cursor: progress; }
.button-sm { height: 38px; padding: 0 16px; font-size: 14px; border-radius: 9px; }
.button-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.text-link {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 5px; text-decoration-thickness: 1px;
  transition: text-decoration-color .15s ease, color .15s ease;
}
.text-link::after { content: "→"; transition: transform .2s ease; }
.text-link:hover { color: var(--accent); text-decoration-color: currentColor; }
.text-link:hover::after { transform: translateX(3px); }

/* ---------- Header ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 21; background: var(--bg); }
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 40px; height: 72px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.wordmark-sub { font-weight: 400; color: var(--muted); margin-left: -4px; }
.mark { width: 28px; height: 14px; flex: none; }
.mark circle:first-child { fill: var(--accent); }
.mark circle:last-child { fill: var(--ink); }
.mark path { stroke: var(--ink); stroke-width: 1.6; }
.nav { display: flex; gap: 30px; margin-right: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 500; transition: color .15s ease; }
.nav a:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px;
  border: 1px solid var(--line-2); background: transparent; color: var(--ink); cursor: pointer;
}
.theme-toggle:hover { border-color: var(--ink); }
.theme-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding-block: 88px 96px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 64px; align-items: center; }
.hero-copy { min-width: 0; }
.hero h1 { font-size: clamp(46px, 6.4vw, 84px); line-height: .98; letter-spacing: -0.025em; margin: 24px 0 28px; }
.h1-soft { color: var(--accent); }
.hero-lead { font-size: 19px; line-height: 1.6; color: var(--ink-2); max-width: 33em; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 36px; flex-wrap: wrap; }

/* Workflow run */
.run { margin: 0; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.run-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.run-title { font-weight: 600; font-size: 15px; }
.run-badge { font: 500 11px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 6px 9px; border-radius: 6px; }
.run-steps { list-style: none; margin: 0; padding: 10px 20px 6px; }
.run-steps li { position: relative; display: grid; grid-template-columns: 62px 14px minmax(0, 1fr); gap: 14px; align-items: start; padding: 12px 0; }
.run-steps li:not(:last-child)::after {
  content: ""; position: absolute; left: calc(62px + 14px + 6px); top: 31px; bottom: -11px; width: 2px;
  background: var(--accent); transform-origin: top;
}
.run.play .run-steps li:not(:last-child)::after { animation: line .35s ease calc(var(--i) * .5s + .25s) backwards; }
.run-steps time { font: 400 12px/1.6 var(--mono); color: var(--muted); padding-top: 2px; font-variant-numeric: tabular-nums; }
.run-dot { width: 14px; height: 14px; border-radius: 50%; margin-top: 4px; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.run.play .run-dot { animation: tick .4s ease calc(var(--i) * .5s) backwards; }
.run-steps strong { display: block; font-size: 15px; font-weight: 600; }
.run-steps div span { display: block; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.run-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 20px; border-top: 1px solid var(--line); background: var(--tint); font: 400 12px/1.5 var(--mono); color: var(--muted); }
.run-foot span:last-child { color: var(--accent); }
@keyframes tick { from { background: var(--line-2); box-shadow: 0 0 0 4px transparent; transform: scale(.8); } }
@keyframes line { from { transform: scaleY(0); } }

/* ---------- Proof ---------- */
.proof { border-block: 1px solid var(--line); }
.proof-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px 40px; padding-block: 22px; flex-wrap: wrap; }
.proof-stat { font-size: 15px; color: var(--muted); }
.proof-stat strong { color: var(--ink); font-weight: 600; }
.proof-list { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 28px; font-size: 14px; color: var(--muted); }
.proof-list span { font-family: var(--display); font-stretch: 85%; font-weight: 600; font-size: 17px; color: var(--ink-2); letter-spacing: -0.01em; }

/* ---------- Sections ---------- */
.section { padding-block: 112px; }
.section-tint { background: var(--tint); }
.section-head { display: grid; gap: 14px; margin-bottom: 52px; max-width: 680px; }
.section-head h2 { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.02; }

/* Needs switcher */
.needs { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.need-tabs { display: grid; border-top: 1px solid var(--line-2); }
.need-tabs [role="tab"] {
  position: relative; display: block; width: 100%; text-align: left; cursor: pointer;
  padding: 24px 40px 24px 0; background: none; border: 0; border-bottom: 1px solid var(--line);
  color: var(--muted); font: inherit;
  transition: color .2s ease;
}
.need-tabs [role="tab"]::after {
  content: "→"; position: absolute; right: 4px; top: 50%; transform: translate(-6px, -50%); opacity: 0;
  color: var(--accent); font-size: 20px; transition: opacity .2s ease, transform .2s ease;
}
.need-tabs [role="tab"]::before {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--accent); transition: width .35s ease;
}
.tab-q { display: block; font-family: var(--display); font-stretch: 82%; font-weight: 600; font-size: clamp(22px, 2.3vw, 29px); line-height: 1.15; letter-spacing: -0.012em; text-wrap: balance; }
.need-tabs [role="tab"]:hover { color: var(--ink-2); }
.need-tabs [role="tab"][aria-selected="true"] { color: var(--ink); }
.need-tabs [role="tab"][aria-selected="true"]::before { width: 100%; }
.need-tabs [role="tab"][aria-selected="true"]::after { opacity: 1; transform: translate(0, -50%); }

.need-panels { min-width: 0; position: sticky; top: 104px; }
.need-panel { padding: 36px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); animation: panel .3s ease; }
.need-panel h3 { font: 500 12px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.panel-lead { font-size: 18px; line-height: 1.6; color: var(--ink); }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; color: var(--ink-2); font-size: 15.5px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft);
}
.ticks li::after {
  content: ""; position: absolute; left: 6px; top: calc(.32em + 4.5px); width: 5px; height: 8px;
  border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.example { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }
.example span { display: block; font: 500 11px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 6px; }
.need-panel .button { margin-top: 28px; }
@keyframes panel { from { opacity: .4; transform: translateY(6px); } }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; counter-reset: s; }
.steps li { display: grid; gap: 10px; align-content: start; }
.step-n {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--accent); color: var(--accent); font: 500 15px/1 var(--mono); margin-bottom: 8px;
}
.steps h3 { font-size: 20px; }
.steps p { color: var(--muted); font-size: 15.5px; }
.assurances { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line-2); }
.assurances p { font-size: 15px; color: var(--muted); }
.assurances strong { display: block; color: var(--ink); font-weight: 600; font-size: 16px; margin-bottom: 4px; }

/* Product */
.product-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 72px; align-items: center; }
.product-copy { display: grid; gap: 14px; justify-items: start; min-width: 0; }
.product-copy h2 { font-size: clamp(44px, 5vw, 64px); line-height: 1; }
.product-lead { font-size: 21px; font-weight: 500; color: var(--ink); max-width: 26em; }
.product-copy > p:not(.kicker):not(.product-lead) { color: var(--muted); max-width: 34em; }
.product-copy .text-link { margin-top: 8px; }

.device { margin: 0; justify-self: center; width: 296px; max-width: 100%; padding: 10px; border-radius: 40px; background: var(--ink); box-shadow: var(--shadow); }
.device-screen { background: var(--surface); color: var(--ink); border-radius: 31px; padding: 28px 22px 20px; font-size: 14px; }
.ds-top { display: flex; align-items: center; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.ds-avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; flex: none; }
.ds-name { font-weight: 600; font-size: 16px; }
.ds-sub { color: var(--muted); font-size: 13px; }
.ds-amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 20px 0 18px; }
.ds-amounts span { text-align: center; padding: 12px 0; border: 1px solid var(--line-2); border-radius: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ds-amounts .on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.ds-row { display: flex; justify-content: space-between; padding: 6px 0; font-variant-numeric: tabular-nums; }
.ds-row.muted { color: var(--muted); }
.ds-row.total { font-weight: 600; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; }
.ds-pay { margin-top: 18px; text-align: center; padding: 13px 0; border-radius: 12px; background: var(--ink); color: var(--bg); font-weight: 600; }
.ds-foot { text-align: center; color: var(--muted); font-size: 12px; margin-top: 12px; }

/* Capabilities */
.caps { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 40px; }
.caps > div { display: grid; gap: 6px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.caps dt { font-weight: 600; font-size: 16px; }
.caps dd { margin: 0; color: var(--muted); font-size: 15px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 72px; align-items: start; }
.contact-copy { display: grid; gap: 16px; min-width: 0; }
.contact-copy h2 { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.02; }
.contact-copy > p:not(.kicker) { color: var(--ink-2); font-size: 17px; max-width: 30em; }
.contact-facts { margin: 20px 0 0; display: grid; }
.contact-facts > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 13px 0; border-top: 1px solid var(--line); font-size: 15px; }
.contact-facts > div:last-child { border-bottom: 1px solid var(--line); }
.contact-facts dt { color: var(--muted); }
.contact-facts dd { margin: 0; font-weight: 500; }

.form { display: grid; gap: 20px; padding: 36px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); min-width: 0; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field > span { font-size: 14px; font-weight: 600; }
.field em { font-style: normal; font-weight: 400; color: var(--muted); margin-left: 4px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--line-2); background: var(--bg); color: var(--ink);
  font: 400 15.5px/1.45 var(--body); transition: border-color .15s ease, box-shadow .15s ease;
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .75; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-status { font-size: 14px; }
.form-status.ok { color: var(--accent); }
.form-status.err { color: var(--err); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 44px 52px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 28px; flex-wrap: wrap; }
.footer-note { margin-top: 12px; font-size: 13px; color: var(--muted); }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-nav a { font-size: 14px; color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .nav { display: none; }
  .header-inner { justify-content: space-between; }
  .hero-grid, .needs, .product-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .need-panels { position: static; }
  .caps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .header-inner { height: 64px; gap: 12px; }
  .wordmark-sub { display: none; }
  .hero { padding-block: 48px 64px; }
  .hero-lead { font-size: 17px; }
  .section { padding-block: 76px; }
  .section-head { margin-bottom: 36px; }
  .needs { gap: 28px; }
  .need-tabs [role="tab"] { padding: 18px 34px 18px 0; }
  .need-panel, .form { padding: 22px; }
  .run-steps { padding-inline: 16px; }
  .run-steps li { grid-template-columns: 54px 14px minmax(0, 1fr); gap: 10px; }
  .run-steps li:not(:last-child)::after { left: calc(54px + 10px + 6px); }
  .steps, .assurances, .caps, .field-row { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .assurances { margin-top: 44px; }
  .contact-facts > div { grid-template-columns: 104px minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
