/*
 * PL: Wariant F "AGENT ZEN" (wersja wspólna). Układ jak na hitme.pl: tekst po
 *     lewej, wizualizacja z podpisem po prawej, jasne karty, ciemny pas
 *     z usługami, zaokrąglone przyciski i krój Montserrat. Zamiast ilustracji
 *     jest konsola agenta AI, który spokojnie sprawdza usługi; kolory to
 *     fiolet, turkus i róż przenikające się w tle i w obramowaniach. Motyw
 *     jasny i ciemny wynikają z ustawień systemu (light-dark()), przełącznik
 *     odwraca je bez JavaScriptu (:has()).
 * EN: Variant F "AGENT ZEN" (the combined version). Laid out like hitme.pl:
 *     copy on the left, a visual with a caption on the right, light cards, a
 *     dark band with the services, pill buttons and the Montserrat typeface.
 *     The illustration is replaced by the console of an AI agent calmly
 *     checking the services; the colours are violet, teal and pink blending
 *     in the background and in the borders. Light and dark themes follow the
 *     system setting (light-dark()); the switch flips them without JavaScript.
 */

@font-face {
  font-family: "Montserrat";
  src: url("montserrat-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Montserrat";
  src: url("montserrat-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Martian Mono";
  src: url("martian-mono-latin-ext.woff2") format("woff2");
  font-weight: 100 800;
  font-stretch: 75% 112.5%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Martian Mono";
  src: url("martian-mono-latin.woff2") format("woff2");
  font-weight: 100 800;
  font-stretch: 75% 112.5%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light dark;

  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Martian Mono", ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, "Liberation Mono", monospace;

  /* light value first, dark value second */
  --bg: light-dark(#f4f6fd, #0f1024);
  --alt: light-dark(#ffffff, #14152d);
  --card: light-dark(#ffffff, #1a1c38);
  --tint: light-dark(#eceffe, #1f2147);
  --band: light-dark(#12132b, #171937);
  --text: light-dark(#15172b, #ecebf8);
  --dim: light-dark(#52577a, #a9add0);
  --line: light-dark(rgb(21 23 43 / 0.12), rgb(255 255 255 / 0.1));
  --line-strong: light-dark(rgb(21 23 43 / 0.3), rgb(255 255 255 / 0.3));
  --violet: light-dark(#5b34d6, #b8a1ff);
  --on-violet: light-dark(#ffffff, #171031);
  --teal: light-dark(#0a7a6e, #5eead4);
  --pink: light-dark(#b81c77, #ff80c9);
  --amber: light-dark(#8a5a00, #ffcf6b);
  --orange: light-dark(#a85100, #ff9a36);
  --shadow: light-dark(rgb(40 44 100 / 0.18), rgb(0 0 0 / 0.55));
  --blob-a: light-dark(rgb(176 148 255 / 0.4), rgb(124 77 255 / 0.42));
  --blob-b: light-dark(rgb(110 222 200 / 0.34), rgb(25 194 178 / 0.3));
  --blob-c: light-dark(rgb(255 168 210 / 0.3), rgb(224 64 154 / 0.2));

  /* The console and the band are dark in both themes */
  --con: #17182f;
  --con-2: #212246;
  --con-text: #e9e9f6;
  --con-dim: #a3a7cb;
  --con-line: rgb(255 255 255 / 0.1);
  --c-violet: #b8a1ff;
  --c-teal: #5eead4;
  --c-pink: #ff80c9;
  --c-amber: #ffcf6b;

  /* HitMe.pl brand orange with its navy as the ink */
  --hitme: #ff8002;
  --hitme-ink: #0e1430;

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --sec: clamp(3.5rem, 8vw, 7rem);
}

/* Browsers without light-dark(): the dark theme */
@supports not (color: light-dark(#000, #fff)) {
  :root {
    --bg: #0f1024;
    --alt: #14152d;
    --card: #1a1c38;
    --tint: #1f2147;
    --band: #171937;
    --text: #ecebf8;
    --dim: #a9add0;
    --line: rgb(255 255 255 / 0.1);
    --line-strong: rgb(255 255 255 / 0.3);
    --violet: #b8a1ff;
    --on-violet: #171031;
    --teal: #5eead4;
    --pink: #ff80c9;
    --amber: #ffcf6b;
    --orange: #ff9a36;
    --shadow: rgb(0 0 0 / 0.55);
    --blob-a: rgb(124 77 255 / 0.42);
    --blob-b: rgb(25 194 178 / 0.3);
    --blob-c: rgb(224 64 154 / 0.2);
  }
}

/* The switch shows the other theme than the system one */
@media (prefers-color-scheme: dark) {
  :root:has(#flip:checked) {
    color-scheme: light;
  }
}

@media (prefers-color-scheme: light) {
  :root:has(#flip:checked) {
    color-scheme: dark;
  }
}

/* ------------------------------------------------------------------ base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 6rem;
}

/* Smooth only after the visitor used a link, never on the first load with #anchor */
html:focus-within {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100svh;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: var(--violet);
  text-underline-offset: 0.22em;
}

svg,
img {
  display: block;
}

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 0.4rem;
}

::selection {
  background: var(--violet);
  color: var(--on-violet);
}

.skip {
  position: fixed;
  left: var(--gutter);
  top: -10rem;
  z-index: 50;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  background: var(--violet);
  color: var(--on-violet);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 5rem;
}

/* The theme checkbox stays focusable but is drawn by its label in the header */
.flip {
  position: fixed;
  top: 0.5rem;
  right: 0.5rem;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.flip:focus-visible ~ .top .flip-btn {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
}

.wrap {
  width: min(100% - 2 * var(--gutter), 76rem);
  margin-inline: auto;
}

/* Soft colour fields behind the light sections */
.wall {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
}

.blob-a {
  width: 72vmax;
  height: 72vmax;
  left: -24vmax;
  top: -34vmax;
  background: radial-gradient(closest-side, var(--blob-a), transparent 74%);
}

.blob-b {
  width: 66vmax;
  height: 66vmax;
  right: -26vmax;
  top: 10vmax;
  background: radial-gradient(closest-side, var(--blob-b), transparent 74%);
}

.blob-c {
  width: 44vmax;
  height: 44vmax;
  left: 24%;
  bottom: -22vmax;
  background: radial-gradient(closest-side, var(--blob-c), transparent 72%);
}

h2 {
  font: 400 clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem) / 1.14 var(--sans);
  letter-spacing: -0.012em;
  text-wrap: balance;
}

h3 {
  font: 600 1.1rem/1.3 var(--sans);
}

.eyebrow {
  margin-bottom: 0.9rem;
  color: var(--violet);
  font: 500 0.8rem/1.3 var(--mono);
  font-stretch: 85%;
}

.ps {
  color: var(--dim);
}

.e-pink {
  color: var(--pink);
}

.e-amber {
  color: var(--amber);
}

.e-orange {
  color: var(--orange);
}

.para {
  max-width: 36rem;
  margin-top: 1.1rem;
  color: var(--dim);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin-top: 1.8rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 0.95rem/1.2 var(--sans);
  text-decoration: none;
  transition: translate 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.pill:hover {
  translate: 0 -1px;
}

.pill-main {
  background: var(--violet);
  color: var(--on-violet);
}

.pill-main:hover {
  box-shadow: 0 12px 28px -12px var(--violet);
}

.pill-ghost {
  border-color: var(--line-strong);
  background: color-mix(in srgb, var(--card) 60%, transparent);
  color: var(--text);
}

.pill-ghost:hover {
  border-color: var(--text);
}

.pill-hitme {
  background: var(--hitme);
  color: var(--hitme-ink);
}

.pill-hitme:hover {
  box-shadow: 0 12px 28px -12px var(--hitme);
}

.textlink {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-weight: 600;
}

/* ---------------------------------------------------------------- header */
.top {
  position: sticky;
  top: 0.75rem;
  z-index: 30;
  padding-inline: var(--gutter);
}

.bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "brand end"
    "nav nav";
  align-items: center;
  column-gap: 1rem;
  max-width: 76rem;
  margin-inline: auto;
  padding: 0.3rem 0.5rem 0 1.1rem;
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  background: color-mix(in srgb, var(--card) 84%, transparent);
  box-shadow: 0 14px 34px -22px var(--shadow);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
}

.brand {
  grid-area: brand;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand-ico {
  width: 1.6rem;
  height: 1.6rem;
}

.brand-ring {
  fill: none;
  stroke: var(--violet);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-dasharray: 86 14;
}

.brand-cur {
  fill: var(--teal);
}

.nav {
  grid-area: nav;
  display: flex;
  gap: 1.35rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a,
.langs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  min-width: 2.75rem;
  min-height: 2.75rem;
  color: var(--dim);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
}

.nav a:hover,
.langs a:hover {
  color: var(--text);
}

.bar-end {
  grid-area: end;
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.langs {
  display: flex;
}

.langs a {
  font: 600 0.74rem/1 var(--mono);
  font-stretch: 85%;
}

.langs a[aria-current="page"] {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--teal);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.5em;
}

.flip-btn {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  color: var(--dim);
  cursor: pointer;
}

.flip-btn:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--text) 8%, transparent);
}

.flip-btn svg {
  width: 1.2rem;
  height: 1.2rem;
}

.bar-cta {
  display: none;
}

/* ------------------------------------------------------------------ hero */
.hero {
  padding-block: clamp(2.5rem, 6vw, 5rem) var(--sec);
}

.hero-grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
}

.hero-grid > *,
.duo > *,
.pair > * {
  min-width: 0;
}

.crumb {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.3rem 0.95rem 0.3rem 0.3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  box-shadow: 0 8px 20px -14px var(--shadow);
  font-size: 0.86rem;
  font-weight: 500;
}

.crumb-chip {
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
}

h1 {
  max-width: 11em;
  margin-top: 1.5rem;
  font: 300 clamp(2.3rem, 1.1rem + 5.2vw, 4.5rem) / 1.08 var(--sans);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.lede {
  max-width: 34rem;
  margin-top: 1.4rem;
  color: var(--dim);
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  line-height: 1.6;
}

/* ------------------------------------------------------ the agent console */
.agent,
.plan {
  border: 1px solid transparent;
  border-radius: 1.25rem;
  background:
    linear-gradient(var(--con), var(--con)) padding-box,
    linear-gradient(135deg, var(--c-violet), var(--c-teal) 55%, var(--c-pink)) border-box;
  color: var(--con-text);
  box-shadow: 0 40px 80px -44px var(--shadow), 0 0 70px -36px var(--c-violet);
  font: 400 0.78rem/1.7 var(--mono);
  font-stretch: 82%;
  overflow: hidden;
}

.agent-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--con-line);
  color: var(--con-dim);
}

.agent-ico {
  width: 1.15rem;
  height: 1.15rem;
}

.agent-ico .brand-ring {
  stroke: var(--c-violet);
}

.agent-ico .brand-cur {
  fill: var(--c-teal);
}

.agent-name {
  color: var(--con-text);
  font-weight: 600;
}

.agent-state {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  background: rgb(94 234 212 / 0.1);
  color: var(--c-teal);
}

.dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: currentColor;
}

.feed {
  min-height: 21.5rem;
  padding: 0.9rem 1rem 0.5rem;
}

.you {
  margin-bottom: 0.75rem;
  padding: 0.45rem 0.75rem;
  border-radius: 0.6rem;
  background: var(--con-2);
  white-space: nowrap;
  overflow: hidden;
}

.gt {
  margin-right: 0.6em;
  color: var(--c-violet);
  font-weight: 700;
}

.typed {
  display: inline-block;
  width: 25ch;
  overflow: hidden;
  white-space: nowrap;
  vertical-align: bottom;
}

:lang(en) .typed {
  width: 29ch;
}

.step {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.55rem;
}

.bullet {
  flex: none;
  width: 0.55rem;
  height: 0.55rem;
  border: 1.5px solid var(--c-teal);
  border-radius: 50%;
  background: var(--c-teal);
}

.res {
  margin: 0.15rem 0 0 0.24rem;
  padding-left: 1.05rem;
  border-left: 1px solid var(--con-line);
  color: var(--con-dim);
}

.res li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.res li span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tag-ok,
.res-ok {
  color: var(--c-teal);
}

.res-warn {
  color: var(--c-amber);
}

.done {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.8rem;
  color: var(--c-teal);
  font-weight: 600;
}

/* A check mark drawn with two borders */
.tick {
  flex: none;
  width: 0.4rem;
  height: 0.7rem;
  margin: 0 0.1rem 0.15rem 0.08rem;
  border: solid var(--c-teal);
  border-width: 0 2px 2px 0;
  rotate: 45deg;
}

.agent-input {
  display: flex;
  align-items: center;
  margin: 0.3rem 0.8rem 0.8rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--con-line);
  border-radius: 0.7rem;
}

.caret {
  width: 0.5em;
  height: 1.15em;
  background: var(--c-violet);
}

/* Caption card under a visual, as on hitme.pl */
.cap {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, 23rem);
  padding: 0.85rem 1.1rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--card);
  box-shadow: 0 18px 40px -22px var(--shadow);
}

.cap-agent {
  margin: -1.3rem 1rem 0 auto;
}

.cap-k {
  color: var(--violet);
  font: 600 0.7rem/1.3 var(--mono);
  font-stretch: 85%;
}

.cap-t {
  margin-top: 0.25rem;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.45;
}

/* -------------------------------------------------------------- sections */
.sec {
  padding-block: var(--sec);
}

.sec-alt {
  background: var(--alt);
}

.sec-last {
  padding-top: 0;
}

.duo {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4.5rem);
}

.photo {
  position: relative;
}

.photo img {
  width: 100%;
  height: auto;
  border-radius: 1.75rem;
  box-shadow: 0 40px 80px -44px var(--shadow);
}

.cap-photo {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
}

/* ------------------------------------------------------------- dark band */
.band {
  padding-block: var(--sec);
  background:
    radial-gradient(60rem 30rem at 88% 0%, rgb(124 77 255 / 0.3), transparent 62%),
    radial-gradient(48rem 26rem at 0% 100%, rgb(25 194 178 / 0.17), transparent 62%),
    var(--band);
  color: var(--con-text);
}

.band .eyebrow {
  color: var(--c-teal);
}

.grid5 {
  display: grid;
  gap: 1rem;
  margin-top: 2.2rem;
}

.svc {
  padding: 1.4rem;
  border: 1px solid var(--con-line);
  border-radius: 1.25rem;
  background: rgb(255 255 255 / 0.045);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.svc:hover {
  border-color: color-mix(in srgb, var(--c2) 65%, transparent);
  background: rgb(255 255 255 / 0.07);
}

.chip {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.8rem;
  background: linear-gradient(140deg, var(--c1), var(--c2));
  color: #fff;
}

.chip svg,
.ico svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.svc-1 {
  --c1: #5f3dc4;
  --c2: #7048e8;
}

.svc-2 {
  --c1: #08754a;
  --c2: #0c8f5a;
}

.svc-3 {
  --c1: #1864ab;
  --c2: #1c7ed6;
}

.svc-4 {
  --c1: #b0204f;
  --c2: #d6336c;
}

.svc-5 {
  --c1: #c2410c;
  --c2: #dd5a0a;
}

.svc h3 {
  margin-top: 1.1rem;
}

.svc p {
  margin-top: 0.4rem;
  color: var(--con-dim);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ------------------------------------------------------------------ plan */
.todo {
  padding: 0.3rem 1.1rem 0.9rem;
}

.td {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 0.85rem;
  padding-block: 0.8rem;
  border-top: 1px solid var(--con-line);
}

.td:first-child {
  border-top: 0;
}

.box {
  grid-row: span 2;
  position: relative;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.12rem;
  border: 1.5px solid var(--c-teal);
  border-radius: 0.3rem;
  background: var(--c-teal);
}

.box::after {
  content: "";
  position: absolute;
  left: 0.3rem;
  top: 0.08rem;
  width: 0.3rem;
  height: 0.58rem;
  border: solid var(--con);
  border-width: 0 2px 2px 0;
  rotate: 45deg;
}

.td h3 {
  font: 600 0.9rem/1.4 var(--mono);
  font-stretch: 85%;
}

.td p {
  margin-top: 0.15rem;
  color: var(--con-dim);
  font: 400 0.92rem/1.5 var(--sans);
}

/* The last stage is the spark: AI */
.td-ai .box {
  border-color: transparent;
  background: linear-gradient(135deg, var(--c-violet), var(--c-pink));
  box-shadow: 0 0 14px -2px var(--c-pink);
}

.td-ai h3 {
  color: var(--c-pink);
}

.monk {
  width: min(100%, 18rem);
  height: auto;
  margin-top: 2rem;
}

.halo {
  fill: none;
  stroke: var(--violet);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 91 9;
  opacity: 0.3;
}

.hw,
.robe,
.screen {
  fill: var(--bg);
  stroke: var(--text);
  stroke-width: 2;
  stroke-linejoin: round;
}

.robe-line {
  fill: none;
  stroke: var(--text);
  stroke-width: 2.4;
  stroke-linecap: round;
}

.face {
  fill: none;
  stroke: var(--text);
  stroke-width: 1.8;
  stroke-linecap: round;
}

.sash {
  fill: none;
  stroke: var(--pink);
  stroke-width: 4;
  stroke-linecap: round;
}

.prompt {
  fill: none;
  stroke: var(--teal);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vent {
  fill: none;
  stroke: var(--dim);
  stroke-width: 1.4;
  stroke-linecap: round;
}

.lamp {
  fill: var(--teal);
}

.tape-s {
  fill: var(--violet);
}

.tape-t {
  fill: var(--on-violet);
  font: 700 8px var(--mono);
  font-stretch: 75%;
}

.flame {
  fill: color-mix(in srgb, var(--amber) 22%, transparent);
  stroke: var(--amber);
  stroke-width: 2;
  stroke-linejoin: round;
  transform-box: fill-box;
  transform-origin: 50% 100%;
}

.monk-body {
  transform-box: fill-box;
  transform-origin: 50% 100%;
}

/* ------------------------------------------------------------------- why */
.trio {
  display: grid;
  gap: 1.75rem;
  margin-top: 2.2rem;
}

.ico {
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  color: var(--violet);
}

.ico-2 {
  color: var(--teal);
}

.ico-3 {
  color: var(--pink);
}

.trio h3 {
  margin-top: 1rem;
  font-size: 1.2rem;
}

.trio p {
  margin-top: 0.4rem;
  color: var(--dim);
}

/* The motto: one calm sentence with a colour bar that blends the three accents */
.motto {
  margin-top: clamp(3rem, 7vw, 5rem);
  padding-left: clamp(1.1rem, 3vw, 2rem);
  border-left: 3px solid transparent;
  border-image: linear-gradient(180deg, var(--violet), var(--teal), var(--pink)) 1;
}

.motto-t {
  max-width: 26em;
  font: 300 clamp(1.35rem, 1rem + 1.6vw, 2.1rem) / 1.35 var(--sans);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.motto-s {
  margin-top: 0.9rem;
  color: var(--dim);
  font-size: 0.9rem;
}

/* ------------------------------------------------------------- hitme cta */
.cta-card {
  display: grid;
  gap: 1.75rem;
  align-items: center;
  padding: clamp(1.6rem, 4.5vw, 3rem);
  border: 1px solid var(--line);
  border-radius: 1.75rem;
  background: var(--tint);
}

.cta-card .pill {
  justify-self: start;
}

/* --------------------------------------------------- founder and contact */
.pair {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

.card {
  padding: clamp(1.4rem, 3.6vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: var(--card);
  box-shadow: 0 24px 50px -36px var(--shadow);
}

.h-small {
  color: var(--dim);
  font: 500 0.8rem/1.3 var(--mono);
  font-stretch: 85%;
  letter-spacing: 0;
}

.who {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 1rem;
  align-items: center;
  margin-top: 1.1rem;
}

.mono-mark {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border-radius: 1.2rem;
  background: linear-gradient(140deg, #5f3dc4, #b0204f);
  color: #fff;
  font: 700 1.2rem/1 var(--mono);
  font-stretch: 85%;
}

.who-name {
  align-self: end;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.2;
}

.who-role {
  align-self: start;
  color: var(--dim);
  font-size: 0.95rem;
}

.mailline {
  display: flex;
  align-items: center;
  margin-block: 1.5rem;
  padding: 0.8rem 1rem;
  border-radius: 0.8rem;
  background: var(--con);
  font: 500 clamp(0.95rem, 0.8rem + 0.9vw, 1.3rem) / 1.3 var(--mono);
  font-stretch: 82%;
  overflow-wrap: anywhere;
}

.mailline a {
  color: var(--c-teal);
}

/* The address is assembled here from two attributes, so the page text never holds it */
.em::before {
  content: attr(data-u) "\40" attr(data-d);
}

.foot {
  padding: 0 var(--gutter) 3rem;
  color: var(--dim);
  font-size: 0.86rem;
  text-align: center;
}

/* ---------------------------------------------------------------- layout */
@media (min-width: 40rem) {
  .grid5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .svc-5 {
    grid-column: span 2;
  }

  .trio {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
  }
}

@media (min-width: 60rem) {
  .bar {
    display: flex;
    gap: 1.5rem;
    padding: 0.4rem 0.45rem 0.4rem 1.3rem;
    border-radius: 999px;
  }

  .nav {
    gap: 1.9rem;
    margin-inline: auto;
    overflow: visible;
  }

  .bar-cta {
    display: inline-flex;
    min-height: 2.75rem;
    margin-left: 0.3rem;
    padding-block: 0.55rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
  }

  .duo {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
  }

  .duo-plan {
    align-items: start;
  }

  .cta-card {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .cta-card .pill {
    justify-self: end;
  }

  .pair {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
}

@media (min-width: 64rem) {
  .grid5 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .svc {
    grid-column: span 2;
  }

  .svc-4,
  .svc-5 {
    grid-column: span 3;
  }
}

/* ---------------------------------------------------------------- motion */
@keyframes drift {
  to {
    transform: translate(6vmax, 5vmax) scale(1.1);
  }
}

@keyframes type {
  from {
    width: 0;
  }
}

@keyframes show {
  to {
    opacity: 1;
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* A step the agent is still working on: a hollow, pulsing bullet */
@keyframes working {
  0%,
  100% {
    background: transparent;
    opacity: 1;
  }

  50% {
    background: transparent;
    opacity: 0.3;
  }
}

@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}

@keyframes breathe {
  50% {
    transform: scale(1.022);
  }
}

@keyframes flicker {
  0%,
  100% {
    transform: scaleY(1) skewX(0deg);
  }

  30% {
    transform: scaleY(1.2) skewX(-5deg);
  }

  60% {
    transform: scaleY(0.88) skewX(4deg);
  }
}

/* A box of the plan gets ticked while it scrolls into view */
@keyframes tick {
  from {
    background: transparent;
  }
}

@keyframes tick-mark {
  from {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }

  .blob-a {
    animation: drift 40s ease-in-out infinite alternate;
  }

  .blob-b {
    animation: drift 52s ease-in-out infinite alternate-reverse;
  }

  /* The agent session plays once, calmly */
  .typed {
    animation: type 1s steps(25) 0.6s both;
  }

  :lang(en) .typed {
    animation-timing-function: steps(29);
  }

  .step,
  .res,
  .res li,
  .done {
    opacity: 0;
    animation: show 0.25s ease forwards;
  }

  .s1 {
    animation-delay: 1.9s;
  }

  .r1 {
    animation-delay: 2s;
  }

  .i1 {
    animation-delay: 2.1s;
  }

  .i2 {
    animation-delay: 2.3s;
  }

  .i3 {
    animation-delay: 2.5s;
  }

  .i4 {
    animation-delay: 2.7s;
  }

  .i5 {
    animation-delay: 2.9s;
  }

  .s2 {
    animation-delay: 3.5s;
  }

  .r2 {
    animation-delay: 4.1s;
  }

  .s3 {
    animation-delay: 4.7s;
  }

  .r3 {
    animation-delay: 6s;
  }

  .done {
    animation-delay: 6.6s;
  }

  .s1 .bullet {
    animation: working 0.6s ease-in-out 1.9s 2;
  }

  .s2 .bullet {
    animation: working 0.6s ease-in-out 3.5s 1;
  }

  .s3 .bullet {
    animation: working 0.65s ease-in-out 4.7s 2;
  }

  .caret {
    animation: blink 1.1s steps(1) infinite;
  }

  .agent-state .dot {
    animation: pulse 2.4s ease-in-out infinite;
  }

  .monk-body {
    animation: breathe 7s ease-in-out infinite;
  }

  .flame {
    animation: flicker 0.9s ease-in-out infinite;
  }

  @supports (animation-timeline: view()) {
    .td .box {
      animation: tick linear both;
      animation-timeline: view();
      animation-range: entry 60% entry 130%;
    }

    .td .box::after {
      animation: tick-mark linear both;
      animation-timeline: view();
      animation-range: entry 60% entry 130%;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
