/* The AI home page (maxmiskow.com). Layout after mistral.ai: a frame of hairline cells,
   a bar of square cells, sticky tabs next to alternating rows, pixel blocks at the edges.
   Colour after fal.ai: ink, two greys, purple, cyan and green, each used as a whole block. */
:root {
  --ink: #121216;
  --ink-2: #202022;
  --paper: #FFFFFF;
  --grey: #F4F4F5;
  --grey-2: #EBEBEB;
  --line: #E4E4E7;
  --mid: #787881;
  --purple: #681DE4;
  --purple-deep: #4A17B0;
  --lavender: #D0B7F9;
  --lilac: #EDE6FB;
  --cyan: #99ECFF;
  --cyan-pale: #D6F8FF;
  --green: #DAFA9C;
  --green-pale: #F1FFD2;

  --bar: 48px;
  --pad: clamp(16px, 2.8vw, 40px);
  --side: clamp(16px, 7.5vw, 120px);
  --frame: 1600px;

  --sans: "Geist", "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* motion: one curve and two speeds, as on the rest of the site */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --d1: .25s;
  --d2: .6s;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar) + 24px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.5 var(--sans);
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
h1, h2, h3, p, ol, ul, figure { margin: 0; padding: 0; }
h1, h2, h3 { text-wrap: balance; font-weight: 500; }
p { text-wrap: pretty; }
ol, ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img, svg, canvas { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
/* selected text: purple on light blocks; green where the block itself is dark or purple */
::selection { background: var(--purple); color: var(--paper); }
.how ::selection, .cta ::selection, .mega-card ::selection { background: var(--green); color: var(--ink); }

.frame { max-width: var(--frame); margin: 0 auto; }
@media (min-width: 1601px) { .frame { border-inline: 1px solid var(--line); } }

.mono { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--mid); }
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--purple); }

.px { shape-rendering: crispEdges; }
.chev { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 16px 0 18px;
  font-size: 15px; font-weight: 500; letter-spacing: -0.005em; white-space: nowrap;
  transition: background-color var(--d1) var(--ease), color var(--d1) var(--ease), border-color var(--d1) var(--ease);
}
.btn .chev { transition: transform var(--d1) var(--ease); }
.btn:hover .chev { transform: translateX(3px); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--purple); }
.btn-soft { background: rgba(18, 18, 22, .05); }
.btn-soft:hover { background: rgba(18, 18, 22, .1); }
.btn-green { background: var(--green); color: var(--ink); }
.btn-green:hover { background: var(--paper); }
.btn-line { box-shadow: inset 0 0 0 1px currentColor; }
.btn-line:hover { background: rgba(255, 255, 255, .1); }

/* ---------- Bar: one row of square cells, as on mistral.ai ---------- */
.bar { position: fixed; inset: 0 0 auto; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.bar-row { display: flex; height: var(--bar); max-width: var(--frame); margin: 0 auto; }
@media (min-width: 1601px) { .bar-row { border-inline: 1px solid var(--line); } }
.bar-logo {
  display: flex; align-items: center; gap: 9px;
  padding: 0 22px; border-right: 1px solid var(--line);
}
.bar-logo svg { height: 13px; width: auto; fill: currentColor; overflow: visible; }
.bar-logo .logo-mark { height: 12px; }
.bar-nav { display: flex; }
.bar-cell {
  display: flex; align-items: center; gap: 8px;
  padding: 0 20px; height: 100%;
  font-size: 15px; font-weight: 500; white-space: nowrap;
  border-right: 1px solid var(--line);
  transition: background-color var(--d1) var(--ease);
}
.bar-cell:hover, .bar-cell[aria-expanded="true"] { background: var(--grey); }
.bar-cell .chev { width: 12px; height: 12px; transform: rotate(90deg); transition: transform var(--d1) var(--ease); }
.bar-cell[aria-expanded="true"] .chev { transform: rotate(-90deg); }
.bar-cell .ext { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.6; color: var(--mid); }
.bar-end { display: flex; margin-left: auto; }
.bar-end .bar-cell { border-right: 0; border-left: 1px solid var(--line); }
.bar-cta { background: var(--ink); color: var(--paper); border-left-color: var(--ink) !important; }
.bar-cta:hover { background: var(--purple); }
.bar-burger { display: none; }
.bars { position: relative; width: 16px; height: 10px; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; right: 0; height: 1.6px; background: currentColor; transition: transform var(--d1) var(--ease), top var(--d1) var(--ease); }
.bars::before { top: 1px; }
.bars::after { top: 7px; }
.is-menu .bars::before { top: 4px; transform: rotate(45deg); }
.is-menu .bars::after { top: 4px; transform: rotate(-45deg); }

/* mega menu under "What I build" */
.mega {
  position: absolute; inset: 100% 0 auto;
  display: grid; grid-template-rows: 0fr;
  background: var(--paper);
  transition: grid-template-rows var(--d2) var(--ease);
}
.mega > div { overflow: hidden; }
.is-mega .mega { grid-template-rows: 1fr; border-bottom: 1px solid var(--line); box-shadow: 0 24px 48px -32px rgba(18, 18, 22, .25); }
.mega-in { display: grid; grid-template-columns: 1fr 1fr 360px; max-width: var(--frame); margin: 0 auto; border-top: 1px solid var(--line); }
@media (min-width: 1601px) { .mega-in { border-inline: 1px solid var(--line); } }
.mega-list { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; }
.mega-item {
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  min-height: 108px; padding: 18px 24px 16px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: background-color var(--d1) var(--ease);
}
.mega-item:nth-child(n+3) { border-bottom: 0; }
.mega-item:hover { background: var(--grey); }
.mega-item b { font-size: clamp(20px, 1.6vw, 24px); font-weight: 500; line-height: 1.1; letter-spacing: -0.02em; }
.mega-item span { display: flex; justify-content: space-between; align-items: end; gap: 16px; color: var(--mid); font-size: 14px; }
.mega-item .chev { flex: none; color: var(--ink); transition: transform var(--d1) var(--ease); }
.mega-item:hover .chev { transform: translateX(4px); }
.mega-card {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  margin: 12px; padding: 18px; min-height: 192px;
  background: var(--purple); color: var(--paper); overflow: hidden;
}
.mega-card canvas { position: absolute; inset: 0; width: 100%; height: 100%; -webkit-mask-image: linear-gradient(to left, #000, transparent 45%); mask-image: linear-gradient(to left, #000, transparent 45%); }
.mega-card > *:not(canvas) { position: relative; }
.mega-card p { font-size: 20px; line-height: 1.12; letter-spacing: -0.02em; font-weight: 500; max-width: 12em; }
.mega-card .btn { align-self: flex-start; }

/* phone menu */
.sheet {
  position: fixed; inset: var(--bar) 0 0; z-index: 49;
  display: flex; flex-direction: column;
  background: var(--paper); overflow-y: auto;
  visibility: hidden; opacity: 0; transform: translateY(-8px);
  transition: opacity var(--d2) var(--ease), transform var(--d2) var(--ease), visibility 0s linear var(--d2);
}
.is-menu .sheet { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.sheet a { display: flex; justify-content: space-between; align-items: center; padding: 14px var(--pad); border-bottom: 1px solid var(--line); font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.sheet .sheet-sub { color: var(--mid); }
.sheet .btn { margin: 24px var(--pad); justify-content: space-between; font-size: 16px; padding: 0 16px 0 18px; border: 0; }

/* ---------- Hero ---------- */
main { padding-top: var(--bar); }
.hero {
  position: relative;
  display: grid; grid-template-columns: var(--side) minmax(0, 1fr) var(--side);
  min-height: max(560px, calc(100svh - var(--bar) - 150px));
  overflow: clip;
}
.hero-side { position: relative; }
.hero-side--l { border-right: 1px solid var(--line); }
.hero-side--r { border-left: 1px solid var(--line); }
.hero-main {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 72px var(--pad) 96px; text-align: center;
}
.hero-ring {
  position: absolute; left: -22%; top: -60%; width: 72%; aspect-ratio: 1;
  border: 1px solid var(--line); border-radius: 50%; pointer-events: none;
}
.hero-ring + .hero-ring { left: auto; right: -30%; top: 40%; width: 64%; }

.chip {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  height: 48px; padding: 4px 14px 4px 4px; margin-bottom: 36px;
  background: var(--paper); border: 1px solid var(--line);
  font-size: 15px; font-weight: 500;
  transition: border-color var(--d1) var(--ease);
}
.chip:hover { border-color: var(--ink); }
.chip img { width: 38px; height: 38px; object-fit: cover; object-position: 50% 22%; background: var(--lilac); }
.chip em { font-style: normal; color: var(--mid); }
.chip .chev { color: var(--mid); }

.hero-title {
  position: relative;
  font-size: clamp(44px, 7.4vw, 116px);
  font-weight: 500; line-height: .98; letter-spacing: -0.035em;
}
.hero-title .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .ln > span { display: inline-block; }
.js .hero-title .ln > span { transform: translateY(115%); transition: transform 1s var(--ease); }
.js .is-in .hero-title .ln > span { transform: none; }
.js .is-in .hero-title .ln:nth-child(2) > span { transition-delay: .09s; }
.hero-title .glyph { display: inline-block; width: .62em; height: .62em; margin: 0 .04em 0 .1em; vertical-align: .02em; }
.hero-sub { max-width: 34em; margin-top: 28px; color: var(--mid); font-size: clamp(16px, 1.35vw, 19px); line-height: 1.45; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 36px; }
.js .hero-sub, .js .hero-cta, .js .chip { opacity: 0; transform: translateY(8px); transition: opacity var(--d2) var(--ease) .35s, transform var(--d2) var(--ease) .35s; }
.js .chip { transition-delay: .1s; }
.js .is-in .hero-sub, .js .is-in .hero-cta, .js .is-in .chip { opacity: 1; transform: none; }

/* pixel blocks standing on the bottom edge, as on mistral.ai */
.stack { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; }
.stack i { display: block; }
.hero-side--l .stack i:nth-child(1) { height: 64px; background: var(--lavender); }
.hero-side--l .stack i:nth-child(2) { height: 72px; background: var(--purple); }
.hero-side--l .stack i:nth-child(3) { height: 88px; background: var(--purple-deep); }
.hero-side--r .stack i:nth-child(1) { height: 56px; background: var(--green); }
.hero-side--r .stack i:nth-child(2) { height: 64px; background: var(--cyan); }
.hero-side--r .stack i:nth-child(3) { height: 104px; background: #5FD6F2; }
.step-l { position: absolute; left: 0; bottom: 0; width: clamp(48px, 7vw, 112px); height: 48px; background: var(--purple); }
.step-l + .step-l { bottom: 48px; width: clamp(24px, 3.5vw, 56px); height: 32px; background: var(--lavender); }
.step-r { position: absolute; right: 0; bottom: 0; width: clamp(40px, 5vw, 80px); height: 40px; background: var(--cyan); }
.robot { position: absolute; left: 50%; bottom: 224px; width: clamp(34px, 3.6vw, 56px); transform: translateX(-50%); }
.robot .eye { transform-box: fill-box; transform-origin: center; animation: blink 5s infinite; }
@keyframes blink { 0%, 92%, 100% { transform: none; } 95% { transform: scaleY(.1); } }
.antenna { animation: glow 2.4s steps(1) infinite; }
@keyframes glow { 50% { fill: var(--cyan); } }
.diamond { position: absolute; width: clamp(40px, 4.6vw, 72px); aspect-ratio: 1; background: var(--purple); transform: rotate(45deg); }
.diamond--a { right: calc(var(--side) / 2 - clamp(20px, 2.3vw, 36px)); top: 26%; animation: float 7s var(--ease) infinite alternate; }
.diamond--b { right: calc(var(--side) - 14px); top: 52%; width: 28px; background: var(--lavender); animation: float 9s var(--ease) infinite alternate-reverse; }
@keyframes float { from { translate: 0 -6px; } to { translate: 0 6px; } }
.spark { position: absolute; left: 50%; bottom: 248px; width: clamp(22px, 2.4vw, 36px); transform: translateX(-50%); }

/* the strip of cells under the hero (mistral's logo row) */
.strip { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip li {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  height: 150px; padding: 16px; border-right: 1px solid var(--line); text-align: center;
  transition: background-color var(--d1) var(--ease);
}
.strip li:last-child { border-right: 0; }
.strip li:hover { background: var(--c, var(--grey)); }
.strip svg { width: 30px; height: 30px; }
.strip span { color: var(--ink); }
.strip .strip-label { position: absolute; left: 14px; top: 12px; font-size: 10.5px; color: var(--mid); }

/* ---------- Section heads ---------- */
.head {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; gap: 24px;
  padding: clamp(96px, 11vw, 168px) var(--pad) clamp(72px, 8vw, 120px); text-align: center;
}
.head h2 { position: relative; max-width: 15em; font-size: clamp(34px, 4.2vw, 60px); line-height: 1.04; letter-spacing: -0.03em; }
.head p { position: relative; max-width: 34em; color: var(--mid); font-size: clamp(16px, 1.3vw, 18px); }
.head .eyebrow { position: relative; }

/* ---------- Strings: the services and their jobs as cells tied with lines (after mistral.ai) ---------- */
.build .head, .threads { background: var(--grey); }
.build .head { padding-bottom: 0; }
.threads { position: relative; display: flex; flex-direction: column; align-items: center; gap: 20px; padding: clamp(56px, 5.5vw, 80px) var(--pad) clamp(104px, 11vw, 160px); user-select: none; -webkit-user-select: none; }
.threads-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.threads-lines line { stroke: color-mix(in srgb, var(--ink) 15%, transparent); stroke-width: 1; transition: stroke var(--d1) var(--ease); }
.threads-lines line.is-on { stroke: var(--purple); }
.threads-row { position: relative; display: flex; justify-content: center; gap: clamp(28px, 3.6vw, 56px); }
.threads-row.r1 { left: -2.5%; }
.threads-row.r2 { left: 3.5%; }
.threads-row.r3 { left: -2%; }
.threads-row.r4 { left: 3%; }
.thread {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 16px;
  background: color-mix(in srgb, var(--ink) 4%, var(--grey)); color: var(--mid);
  border: 1px solid color-mix(in srgb, var(--ink) 9%, var(--grey));
  font-size: clamp(16px, 1.4vw, 20px); font-weight: 500; letter-spacing: -0.012em; white-space: nowrap;
  cursor: grab; touch-action: none; -webkit-user-drag: none;
  transition: background-color var(--d1) var(--ease), color var(--d1) var(--ease), border-color var(--d1) var(--ease), box-shadow var(--d1) var(--ease);
}
.thread::before, .thread::after { content: ""; position: absolute; top: 50%; width: 5px; height: 5px; background: var(--ink); translate: 0 -50%; }
.thread::before { left: -3px; }
.thread::after { right: -3px; }
.thread:hover { border-color: color-mix(in srgb, var(--ink) 40%, var(--line)); color: var(--ink); }
.thread.is-key { background: var(--paper); color: var(--ink); }
.thread.is-key .pix { width: 19px; }
.thread.is-drag { z-index: 2; cursor: grabbing; border-color: var(--purple); box-shadow: 0 18px 40px -20px rgba(18, 18, 22, .35); }
.thread.is-drag::before, .thread.is-drag::after { background: var(--purple); }

/* ---------- What I build: sticky tabs + alternating rows ---------- */
.build-grid { display: grid; grid-template-columns: minmax(260px, 380px) minmax(0, 1fr); border-top: 1px solid var(--line); }
.build-nav { border-right: 1px solid var(--line); }
.build-nav ul { position: sticky; top: calc(var(--bar) + 32px); display: flex; flex-direction: column; gap: 4px; padding: 32px var(--pad); }
.build-nav a {
  display: flex; justify-content: space-between; align-items: center;
  height: 56px; padding: 0 16px;
  color: var(--mid); font-size: 16px; font-weight: 500;
  border: 1px solid transparent;
  transition: color var(--d1) var(--ease), border-color var(--d1) var(--ease), background-color var(--d1) var(--ease);
}
.build-nav a i { display: inline-flex; align-items: center; gap: 12px; font-style: normal; }
.build-nav a i::before { content: ""; width: 8px; height: 8px; background: var(--c); opacity: .35; transition: opacity var(--d1) var(--ease); }
.build-nav a .chev { opacity: 0; transform: translateX(-4px); transition: opacity var(--d1) var(--ease), transform var(--d1) var(--ease); }
.build-nav a:hover { color: var(--ink); }
.build-nav a.is-on { color: var(--ink); border-color: var(--line); background: var(--paper); box-shadow: 0 1px 0 var(--line); }
.build-nav a.is-on i::before { opacity: 1; }
.build-nav a.is-on .chev { opacity: 1; transform: none; }
.build-nav .nav-foot { margin-top: 24px; padding: 18px 16px 0; border-top: 1px solid var(--line); color: var(--mid); font-size: 14px; }
.build-nav .nav-foot a { display: inline; height: auto; padding: 0; border: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }

.row {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 3vw, 40px);
  padding: clamp(24px, 2.8vw, 40px); border-bottom: 1px solid var(--line);
}
.row:last-child { border-bottom: 0; }
.row:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.row:nth-child(even) .row-copy { order: 2; }
.row-copy { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: 8px 0; }
.row-copy .btn { align-self: flex-start; }
.row-copy .mono { color: var(--mid); display: flex; align-items: center; gap: 10px; }
.row-copy .mono::before { content: ""; width: 8px; height: 8px; background: var(--c); }
.row h3 { margin-top: 18px; font-size: clamp(28px, 2.6vw, 40px); line-height: 1.05; letter-spacing: -0.028em; }
.row-text { margin-top: 18px; color: var(--mid); font-size: 16px; max-width: 30em; }
.uses { margin-top: 24px; border-top: 1px solid var(--line); }
.uses li { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.uses li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 9px; background: var(--ink); }
.uses-label { display: block; margin-top: 28px; margin-bottom: 10px; color: var(--mid); font-size: 11px; }

/* coloured panel: pixel mosaic + a small piece of interface */
.panel {
  position: relative; overflow: hidden;
  display: grid; place-items: center;
  min-height: 460px; padding: clamp(24px, 4vw, 56px);
  background: var(--bg);
}
.panel canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.panel-tag { position: absolute; left: 0; top: 0; padding: 8px 12px; background: var(--paper); color: var(--ink); font-size: 11px; z-index: 2; }
.ui {
  position: relative; z-index: 1;
  width: min(100%, 420px);
  background: var(--paper); color: var(--ink);
  box-shadow: 0 0 0 1px rgba(18, 18, 22, .08), 0 30px 60px -30px rgba(18, 18, 22, .45);
  font-size: 14px; line-height: 1.4;
}
.ui-top { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border-bottom: 1px solid var(--line); font-weight: 500; }
.ui-top svg { width: 18px; height: 18px; }
.ui-top .status { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; color: var(--mid); font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .02em; }
.dot { width: 7px; height: 7px; background: #3DBE5B; animation: pulse 2.2s var(--ease) infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(61, 190, 91, .45); } 60% { box-shadow: 0 0 0 5px rgba(61, 190, 91, 0); } }
.ui-body { padding: 14px; display: grid; gap: 10px; }
.ui-msg { padding: 12px; background: var(--grey); }
.ui-msg small, .ui-src { display: block; color: var(--mid); font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .02em; }
.ui-msg small { margin-bottom: 4px; }
.ui-msg--ai { background: var(--lilac); }
.ui-src { margin-top: 8px; color: var(--purple); }
.ui-actions { display: flex; justify-content: flex-end; gap: 6px; padding: 0 14px 14px; }
.ui-actions span { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; font-size: 13px; font-weight: 500; background: var(--grey); }
.ui-actions span:last-child { background: var(--ink); color: var(--paper); }
.flow li { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.flow li:last-child { border-bottom: 0; }
.flow li::before { content: ""; width: 10px; height: 10px; background: var(--ink); }
.flow li.ai::before { background: var(--purple); }
.flow li.wait::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink); }
.flow time { color: var(--mid); font-family: var(--mono); font-size: 11px; }
.flow em { font-style: normal; display: inline-block; margin-left: 6px; padding: 1px 6px; background: var(--lilac); color: var(--purple-deep); font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .02em; vertical-align: 1px; }
.ask { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 14px; border-bottom: 1px solid var(--line); font-size: 15px; }
.ask svg { width: 18px; height: 18px; flex: none; }
.ask .caret { width: 1.5px; height: 18px; margin-left: -6px; background: var(--ink); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chips span { padding: 3px 8px; background: var(--paper); border: 1px solid var(--line); font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .02em; color: var(--mid); }
.ship li { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.ship li:last-child { border-bottom: 0; }
.ship b { font-weight: 500; }
.ship .ok { display: inline-flex; align-items: center; gap: 8px; color: var(--mid); font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .02em; }
.ship .ok::before { content: ""; width: 10px; height: 10px; background: var(--green); box-shadow: inset 0 0 0 1px rgba(18, 18, 22, .25); }
.ship .ok.now::before { background: #3DBE5B; box-shadow: none; animation: pulse 2.2s var(--ease) infinite; }
.win-dots { display: flex; gap: 5px; }
.win-dots i { width: 8px; height: 8px; background: var(--line); }

/* ---------- How I work: black band, four steps rising as a staircase ---------- */
.how { background: var(--ink); color: var(--paper); }
.how .frame { border-color: rgba(255, 255, 255, .12); }
.how-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: end;
  padding: clamp(96px, 10vw, 152px) var(--pad) clamp(48px, 5vw, 72px);
}
.how-head .eyebrow { color: rgba(255, 255, 255, .55); margin-bottom: 24px; }
.how-head .eyebrow::before { background: var(--green); }
.how-head h2 { font-size: clamp(34px, 4.2vw, 60px); line-height: 1.04; letter-spacing: -0.03em; max-width: 11em; }
.how-head p { max-width: 28em; color: rgba(255, 255, 255, .62); font-size: clamp(16px, 1.3vw, 18px); }
.how-head .btn { margin-top: 28px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255, 255, 255, .12); }
.step { display: flex; flex-direction: column; min-height: 640px; border-right: 1px solid rgba(255, 255, 255, .12); }
.step:last-child { border-right: 0; }
.step-meta { display: flex; justify-content: space-between; padding: 20px var(--pad) 0; color: rgba(255, 255, 255, .55); }
.step-meta b { color: var(--paper); font-weight: 500; }
.step-card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  margin-top: auto; height: var(--h); padding: 24px var(--pad) var(--pad);
  background: var(--bg); color: var(--fg, var(--ink));
}
.step-card svg { width: 44px; height: 44px; }
.step-card h3 { font-size: clamp(24px, 2.1vw, 32px); line-height: 1.08; letter-spacing: -0.025em; }
.step-card p { margin-top: 12px; font-size: 15px; line-height: 1.45; opacity: .78; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255, 255, 255, .12); }
.facts li { display: flex; gap: 16px; padding: 28px var(--pad) 32px; border-right: 1px solid rgba(255, 255, 255, .12); }
.facts li:last-child { border-right: 0; }
.facts li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 8px; background: var(--green); }
.facts b { display: block; font-size: 18px; font-weight: 500; letter-spacing: -0.015em; }
.facts span { display: block; margin-top: 6px; color: rgba(255, 255, 255, .6); font-size: 15px; }


/* ---------- Shared head of the sales sections: title left, one sentence right ---------- */
.sec-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 40px; align-items: end;
  padding: clamp(96px, 10vw, 152px) var(--pad) clamp(40px, 4vw, 64px);
}
.sec-head .eyebrow { margin-bottom: 24px; }
.sec-head h2 { font-size: clamp(34px, 4.2vw, 60px); line-height: 1.04; letter-spacing: -0.03em; max-width: 12em; }
.sec-head p { max-width: 30em; color: var(--mid); font-size: clamp(16px, 1.3vw, 18px); }

/* ---------- Problems: four situations the reader knows from their own week ---------- */
.pains { border-top: 1px solid var(--line); }
.pain-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
.pain { display: flex; flex-direction: column; gap: 28px; min-height: 380px; padding: 24px var(--pad) 28px; background: var(--paper); }
.pain-no { color: var(--mid); }
.pain { position: relative; }
.pain > .pix { position: absolute; right: var(--pad); top: 22px; width: 30px; }
.pain-q { font-size: clamp(21px, 1.8vw, 26px); font-weight: 500; line-height: 1.18; letter-spacing: -0.02em; quotes: "“" "”"; }
.pain-q:lang(pl) { quotes: "„" "”"; }
.pain-q::before { content: open-quote; }
.pain-q::after { content: close-quote; }
.pain-a { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.45; }
.pain-a .mono { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--mid); font-size: 11px; }
.pain-a .mono::before { content: ""; width: 8px; height: 8px; background: #7FD321; }

/* ---------- Gains: one large purple block and four small ones ---------- */
.gains { border-top: 1px solid var(--line); }
.gain-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
.gain { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 280px; padding: 24px var(--pad) 28px; background: var(--bg, var(--paper)); }
.gain .pix { width: 36px; }
.gain h3 { font-size: clamp(20px, 1.6vw, 24px); line-height: 1.15; letter-spacing: -0.02em; }
.gain p { margin-top: 10px; color: color-mix(in srgb, var(--ink) 68%, transparent); font-size: 15px; line-height: 1.45; }
.gain--big { position: relative; overflow: hidden; grid-column: span 2; grid-row: span 2; justify-content: flex-end; background: var(--purple); color: var(--paper); }
.gain--big canvas { position: absolute; inset: 0; width: 100%; height: 100%; -webkit-mask-image: linear-gradient(200deg, #000 15%, transparent 60%); mask-image: linear-gradient(200deg, #000 15%, transparent 60%); }
.gain-in { position: relative; display: flex; flex-direction: column; gap: 18px; max-width: 30em; }
.gain-in .mono { color: var(--lavender); }
.gain--big h3 { font-size: clamp(30px, 3.2vw, 48px); line-height: 1.04; letter-spacing: -0.03em; }
.gain--big p { margin: 0; color: rgba(255, 255, 255, .75); font-size: clamp(16px, 1.3vw, 18px); }

/* ---------- Who is behind it: lilac band, a big line, photo resolving from pixels, numbers, one quote ---------- */
.proof { --pl: color-mix(in srgb, var(--ink) 12%, var(--lilac)); background: var(--lilac); border-top: 1px solid var(--line); }
.proof-head { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; padding: clamp(96px, 10vw, 152px) var(--pad) clamp(40px, 4vw, 64px); }
.proof-head h2 { max-width: 13em; font-size: clamp(40px, 6vw, 92px); line-height: .98; letter-spacing: -0.035em; }
.proof-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 4fr); border-top: 1px solid var(--pl); }
.proof-grid:not(:has(.proof-quote)) { grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); }
.proof-photo { position: relative; overflow: hidden; min-height: 540px; background: var(--purple); border-right: 1px solid var(--pl); }
.proof-photo img, .proof-photo canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.proof-photo img { object-fit: cover; object-position: 55% 30%; }
.proof-photo canvas { background: var(--purple); image-rendering: pixelated; transition: opacity var(--d2) var(--ease); }
.proof-photo .panel-tag { top: auto; bottom: 0; }
.proof-bio { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 40px; padding: clamp(28px, 3vw, 44px) var(--pad); }
.proof-bio p { max-width: 30em; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.45; letter-spacing: -0.01em; }
.proof-quote { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: clamp(28px, 3vw, 44px) var(--pad); background: var(--purple); color: var(--paper); border-left: 1px solid var(--pl); }
.proof-quote canvas { position: absolute; inset: 0; width: 100%; height: 100%; -webkit-mask-image: radial-gradient(circle at 100% 0, #000 30px, transparent 220px); mask-image: radial-gradient(circle at 100% 0, #000 30px, transparent 220px); }
.proof-quote > *:not(canvas) { position: relative; }
.proof-quote .eyebrow { color: var(--lavender); }
.proof-quote .eyebrow::before { background: var(--green); }
.proof-quote blockquote { margin: 0; font-size: clamp(24px, 2.2vw, 32px); font-weight: 500; line-height: 1.18; letter-spacing: -0.02em; quotes: "“" "”"; }
.proof-quote blockquote:lang(pl) { quotes: "„" "”"; }
.proof-quote blockquote::before { content: open-quote; }
.proof-quote blockquote::after { content: close-quote; }
.proof-quote figcaption { display: flex; flex-direction: column; gap: 4px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .22); }
.proof-quote figcaption b { font-weight: 500; }
.proof-quote figcaption span { color: rgba(255, 255, 255, .65); font-size: 15px; }
.proof-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--pl); }
.proof-stats li { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-height: 200px; padding: 24px var(--pad) 28px; border-right: 1px solid var(--pl); }
.proof-stats li:last-child { border-right: 0; }
.proof-stats b { font-size: clamp(44px, 5.2vw, 84px); font-weight: 500; line-height: .95; letter-spacing: -0.045em; }
.proof-stats li:nth-child(2) b { color: var(--purple); }
.proof-stats .mono { display: flex; align-items: center; gap: 10px; color: color-mix(in srgb, var(--ink) 62%, var(--lilac)); }
.proof-stats .mono::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--purple); }

/* ---------- How to start: the free report (with its form) and the free call ---------- */
.offer { border-top: 1px solid var(--line); }
.plan-tag { color: var(--mid); }
.ways { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); border-top: 1px solid var(--line); }
.way { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 32px; padding: 28px var(--pad) var(--pad); }
.way-in { position: relative; display: flex; flex-direction: column; gap: 16px; }
.way h3 { margin-top: 24px; font-size: clamp(30px, 2.8vw, 44px); line-height: 1.02; letter-spacing: -0.03em; }
.way-in > p { max-width: 30em; font-size: 16px; }
.way ul { display: grid; max-width: 34em; margin-top: 8px; border-top: 1px solid var(--line); }
.way li { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.way li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 8px; background: var(--purple); }
.way--report { background: var(--purple-deep); color: var(--paper); }
.way--report canvas { position: absolute; inset: 0; width: 100%; height: 100%; -webkit-mask-image: linear-gradient(210deg, #000 8%, transparent 42%); mask-image: linear-gradient(210deg, #000 8%, transparent 42%); }
.way--report .plan-tag { color: var(--lavender); }
.way--report .way-in > p { color: rgba(255, 255, 255, .72); }
.way--report ul, .way--report li { border-color: rgba(255, 255, 255, .16); }
.way--report li::before { background: var(--green); }
.way--call { background: var(--green-pale); border-left: 1px solid var(--line); }
.way--call .way-in > p { color: color-mix(in srgb, var(--ink) 68%, transparent); }
.way--call ul, .way--call li { border-color: color-mix(in srgb, var(--ink) 12%, transparent); }
.way-art { width: 72px; margin-top: auto; }
.way--call .btn { align-self: flex-start; }

.report-form { position: relative; display: grid; gap: 16px; max-width: 560px; }
.report-form .btn { justify-self: start; }

/* ---------- Form fields: light by default (the contact panel), dark on the purple report card ---------- */
.hp { position: absolute; left: -9999px; }
.field { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field > .mono, .field legend { padding: 0; color: var(--mid); font-size: 11px; }
.field legend { margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; padding: 13px 14px;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--line); border-radius: 0;
  font: 400 16px/1.4 var(--sans);
  transition: border-color var(--d1) var(--ease), background-color var(--d1) var(--ease);
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: #A1A1AA; }
.field input:hover, .field textarea:hover { border-color: color-mix(in srgb, var(--ink) 35%, var(--line)); }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--purple); }
.choice { display: flex; flex-wrap: wrap; gap: 6px; }
.choice label { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border: 1px solid var(--line); background: var(--paper); font-size: 15px; transition: background-color var(--d1) var(--ease), color var(--d1) var(--ease), border-color var(--d1) var(--ease); }
.choice label:hover span { border-color: var(--ink); }
.choice input:checked + span { background: var(--purple); border-color: var(--purple); color: var(--paper); }
.choice input:focus-visible + span { outline: 2px solid var(--purple); outline-offset: 2px; }
form[aria-busy="true"] button[type="submit"] { opacity: .55; pointer-events: none; }
.form-note { color: var(--mid); font-size: 13px; }
.form-error { color: #C0265A; font-size: 15px; }
.form-done { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; max-width: 30em; padding: 8px 0; }
.form-done .pix { width: 48px; }
.form-done h2, .form-done h3 { margin-top: 8px; font-size: clamp(28px, 2.6vw, 38px); line-height: 1.05; letter-spacing: -0.03em; }
.form-done p { color: var(--mid); }

.way--report .field > .mono, .way--report .field legend { color: rgba(255, 255, 255, .6); }
.way--report .field input, .way--report .field textarea { background: rgba(255, 255, 255, .07); color: var(--paper); border-color: rgba(255, 255, 255, .22); }
.way--report .field input::placeholder, .way--report .field textarea::placeholder { color: rgba(255, 255, 255, .38); }
.way--report .field input:hover, .way--report .field textarea:hover { border-color: rgba(255, 255, 255, .45); }
.way--report .field input:focus, .way--report .field textarea:focus { border-color: var(--green); background: rgba(255, 255, 255, .1); }
.way--report .choice span { background: transparent; border-color: rgba(255, 255, 255, .22); }
.way--report .choice label:hover span { border-color: rgba(255, 255, 255, .6); }
.way--report .choice input:checked + span { background: var(--green); border-color: var(--green); color: var(--ink); }
.way--report .choice input:focus-visible + span { outline-color: var(--green); }
.way--report .form-note { color: rgba(255, 255, 255, .5); }
.way--report .form-error { color: #FFC4D8; }
.way--report .form-done p { color: rgba(255, 255, 255, .72); }

/* ---------- Contact: a panel that slides in from the right ---------- */
html.is-locked { overflow: hidden; }
.drawer { position: fixed; inset: 0; z-index: 70; }
.drawer-shade { position: absolute; inset: 0; background: rgba(18, 18, 22, .45); opacity: 0; transition: opacity var(--d2) var(--ease); }
.drawer.is-open .drawer-shade { opacity: 1; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column;
  width: min(520px, 100%);
  background: var(--paper); border-left: 1px solid var(--line);
  box-shadow: -30px 0 80px -40px rgba(18, 18, 22, .5);
  transform: translateX(100%);
  transition: transform var(--d2) var(--ease);
}
.drawer.is-open .drawer-panel { transform: none; }
.drawer-bar { flex: none; display: flex; justify-content: space-between; height: var(--bar); border-bottom: 1px solid var(--line); }
.drawer-label { display: flex; align-items: center; gap: 10px; padding: 0 var(--pad); color: var(--mid); }
.drawer-label::before { content: ""; width: 8px; height: 8px; background: var(--purple); }
.drawer-close { position: relative; width: var(--bar); border-left: 1px solid var(--line); transition: background-color var(--d1) var(--ease); }
.drawer-close:hover { background: var(--grey); }
.drawer-close span::before, .drawer-close span::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 1.6px; background: var(--ink); translate: -50% -50%; rotate: 45deg; }
.drawer-close span::after { rotate: -45deg; }
.drawer-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 22px var(--pad) 26px; }
.drawer-head { margin-bottom: 4px; }
.drawer-head h2 { font-size: clamp(22px, 1.9vw, 28px); line-height: 1.08; letter-spacing: -0.025em; }
.drawer-head p { margin-top: 8px; color: var(--mid); font-size: 14px; line-height: 1.45; }
.contact-form { display: grid; gap: 12px; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.form-send { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 2px; }
.form-send .form-note { flex: 1; min-width: 14em; }
.drawer-call { position: relative; overflow: hidden; flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 0 var(--pad); background: var(--purple); color: var(--paper); }
.drawer-call canvas { position: absolute; inset: 0; width: 100%; height: 100%; -webkit-mask-image: linear-gradient(to left, #000, transparent 55%); mask-image: linear-gradient(to left, #000, transparent 55%); }
.drawer-call span { position: relative; display: flex; flex-direction: column; gap: 1px; font-size: 13px; color: rgba(255, 255, 255, .75); }
.drawer-call b { color: var(--paper); font-size: 16px; font-weight: 500; letter-spacing: -0.015em; }
.drawer-call i { position: relative; display: grid; place-items: center; flex: none; width: 36px; height: 36px; background: var(--green); color: var(--ink); transition: transform var(--d1) var(--ease); }
.drawer-call:hover i { transform: translateX(4px); }
/* everything inside the panel one step smaller, so the send button shows without scrolling */
.drawer .field { gap: 6px; }
.drawer .field > .mono, .drawer .field legend { font-size: 10px; }
.drawer .field legend { margin-bottom: 6px; }
.drawer .field input, .drawer .field textarea { padding: 9px 12px; font-size: 15px; }
.drawer .field textarea { min-height: 76px; }
.drawer .choice { gap: 5px; }
.drawer .choice span { height: 32px; padding: 0 11px; font-size: 13px; }
.drawer .btn { height: 40px; padding: 0 14px 0 16px; font-size: 14px; }
.drawer .form-note { font-size: 12px; }
.drawer .form-error { font-size: 14px; }
.drawer .form-done .pix { width: 40px; }
.drawer .form-done h2 { font-size: clamp(22px, 1.9vw, 28px); }
.drawer .form-done p { font-size: 14px; }

.offer-mvp { display: flex; align-items: center; gap: 18px; padding: 22px var(--pad); background: var(--purple); color: var(--paper); }
.offer-mvp .pix { width: 30px; flex: none; }
.offer-mvp p { flex: 1; font-size: 17px; color: rgba(255, 255, 255, .8); }
.offer-mvp b { color: var(--paper); font-weight: 500; }

/* ---------- FAQ: sticky head, answers that open smoothly ---------- */
.faq { background: var(--grey); border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.faq-head { border-right: 1px solid var(--line); }
.faq-head > * { position: relative; }
.faq-head { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; padding: clamp(96px, 10vw, 152px) var(--pad); }
.faq-head h2 { font-size: clamp(34px, 4.2vw, 60px); line-height: 1.04; letter-spacing: -0.03em; max-width: 10em; }
.faq-head p { max-width: 24em; color: var(--mid); font-size: clamp(16px, 1.3vw, 18px); }
.faq-list { padding: clamp(96px, 10vw, 152px) var(--pad); }
.qa { border-bottom: 1px solid var(--line); }
.qa:first-child { border-top: 1px solid var(--line); }
.qa button { display: flex; justify-content: space-between; align-items: center; gap: 24px; width: 100%; padding: 22px 0; text-align: left; font-size: clamp(18px, 1.5vw, 21px); font-weight: 500; letter-spacing: -0.015em; }
.qa button i { position: relative; flex: none; width: 28px; height: 28px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); transition: background-color var(--d1) var(--ease), transform var(--d2) var(--ease); }
.qa button i::before, .qa button i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.6px; background: var(--ink); translate: -50% -50%; transition: background-color var(--d1) var(--ease); }
.qa button i::after { rotate: 90deg; }
.qa button:hover i { box-shadow: inset 0 0 0 1px var(--ink); }
.qa.is-open button i { background: var(--ink); transform: rotate(45deg); }
.qa.is-open button i::before, .qa.is-open button i::after { background: var(--paper); }
.qa-a { display: grid; grid-template-rows: 1fr; transition: grid-template-rows var(--d2) var(--ease); }
.js .qa:not(.is-open) .qa-a { grid-template-rows: 0fr; }
.qa-a > div { overflow: hidden; }
.qa-a p { max-width: 38em; padding: 0 52px 24px 0; color: var(--mid); font-size: 16px; line-height: 1.55; }

/* ---------- Footer ---------- */
.cta { background: var(--purple-deep); color: var(--paper); }
.cta .frame { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); min-height: 520px; }
@media (min-width: 1601px) { .cta .frame { border-color: rgba(255, 255, 255, .14); } }
.cta-copy { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; padding: clamp(72px, 8vw, 120px) var(--pad) var(--pad); }
.cta .eyebrow { color: rgba(255, 255, 255, .6); }
.cta h2 { margin-top: 24px; font-size: clamp(36px, 4.8vw, 72px); line-height: 1; letter-spacing: -0.035em; max-width: 10em; }
.cta p { margin-top: 24px; max-width: 26em; color: rgba(255, 255, 255, .72); font-size: clamp(16px, 1.3vw, 18px); }
.cta-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.cta-art { position: relative; }
.cta-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.foot { border-top: 1px solid var(--line); }
.foot-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.foot-col { padding: 32px var(--pad) 48px; border-right: 1px solid var(--line); }
.foot-col:last-child { border-right: 0; }
.foot-col h4 { margin: 0 0 18px; color: var(--mid); font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; }
.foot-col li + li { margin-top: 8px; }
.foot-col a { font-size: 15px; font-weight: 500; transition: color var(--d1) var(--ease); }
.foot-col a:hover { color: var(--purple); }
.foot-about { max-width: 22em; color: var(--mid); font-size: 15px; }
.foot-about b { display: block; margin-bottom: 8px; color: var(--ink); font-weight: 500; }
.foot-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 18px var(--pad); border-top: 1px solid var(--line); color: var(--mid); }
.foot-row nav { display: flex; gap: 20px; }
.foot-row a:hover { color: var(--ink); }
.foot-mark { padding: clamp(40px, 6vw, 96px) var(--pad) clamp(28px, 3vw, 44px); border-top: 1px solid var(--line); }
.foot-logo { width: 100%; height: auto; fill: var(--ink); overflow: visible; }
.band { position: relative; height: 176px; }
.band svg.steps-edge { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 48px; }
.band-rows { position: absolute; inset: 48px 0 0; display: grid; grid-template-rows: repeat(4, 1fr); }
.band-rows i:nth-child(1) { background: var(--lavender); }
.band-rows i:nth-child(2) { background: var(--purple); }
.band-rows i:nth-child(3) { background: var(--purple-deep); }
.band-rows i:nth-child(4) { background: var(--ink); }
.walker { position: absolute; left: 0; top: 48px; width: 34px; translate: 0 -100%; animation: walk 38s linear infinite; }
.walker .leg-a { animation: step .5s steps(1) infinite; }
.walker .leg-b { animation: step .5s steps(1) infinite reverse; }
@keyframes walk { from { left: -40px; } to { left: 100%; } }
@keyframes step { 50% { opacity: 0; } }



/* ---------- Language cell in the bar ---------- */
.bar-lang { padding: 0 16px; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; }

/* ---------- Blog: the list ---------- */
.blog-head {
  display: flex; flex-direction: column; align-items: flex-start; gap: 24px;
  padding: clamp(96px, 10vw, 152px) var(--pad) clamp(48px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}
.blog-head h1 { font-size: clamp(44px, 6.4vw, 96px); line-height: .98; letter-spacing: -0.035em; max-width: 12em; }
.blog-head p { max-width: 34em; color: var(--mid); font-size: clamp(16px, 1.3vw, 18px); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards > li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cards > li:nth-child(3n) { border-right: 0; }
.card { display: flex; flex-direction: column; height: 100%; transition: background-color var(--d1) var(--ease); }
.card:hover { background: var(--grey); }
.card-art { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: var(--bg); }
.card-art canvas, .card-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-body { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 24px var(--pad) 28px; }
.card-body h2 { font-size: clamp(21px, 1.7vw, 26px); line-height: 1.12; letter-spacing: -0.02em; transition: color var(--d1) var(--ease); }
.card:hover .card-body h2 { color: var(--purple); }
.card-body p { color: var(--mid); font-size: 15px; }
.card-meta { display: flex; gap: 16px; margin-top: auto; padding-top: 12px; color: var(--mid); font-size: 11px; }
.blog-empty { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 120px var(--pad); color: var(--mid); text-align: center; }
.blog-empty .pix { width: 56px; }
.blog-more { border-top: 1px solid var(--line); }
.blog-more-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding: clamp(72px, 7vw, 112px) var(--pad) 32px; border-bottom: 1px solid var(--line); }
.blog-more-head h2 { font-size: clamp(30px, 3.4vw, 48px); line-height: 1.04; letter-spacing: -0.03em; }

/* ---------- Blog: one post ---------- */
.post-head {
  display: flex; flex-direction: column; align-items: center; gap: 22px;
  padding: clamp(56px, 6vw, 88px) var(--pad) clamp(48px, 5vw, 72px); text-align: center;
}
.post-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 24px; color: var(--mid); transition: color var(--d1) var(--ease); }
.post-back .chev { transform: rotate(180deg); }
.post-back:hover { color: var(--ink); }
.post-head h1 { max-width: 16em; font-size: clamp(36px, 4.6vw, 68px); line-height: 1.02; letter-spacing: -0.032em; }
.post-dek { max-width: 34em; color: var(--mid); font-size: clamp(17px, 1.4vw, 20px); line-height: 1.45; }
.post-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-top: 8px; color: var(--mid); font-size: 11px; }
.post-art { position: relative; overflow: hidden; height: clamp(180px, 24vw, 360px); background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.post-art canvas, .post-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-grid { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); }
.post-toc { border-right: 1px solid var(--line); }
.toc-in { position: sticky; top: var(--bar); padding: 40px var(--pad); }
.toc-in > .mono { display: block; margin-bottom: 14px; color: var(--mid); font-size: 11px; }
.toc-in ul { display: flex; flex-direction: column; }
.post-toc a { display: flex; gap: 10px; padding: 7px 0; color: var(--mid); font-size: 14px; line-height: 1.35; transition: color var(--d1) var(--ease); }
.post-toc a::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 6px; background: var(--line); transition: background-color var(--d1) var(--ease); }
.post-toc a:hover, .post-toc a.is-on { color: var(--ink); }
.post-toc a.is-on::before { background: var(--purple); }
.post-body { max-width: calc(680px + 2 * var(--pad)); padding: clamp(40px, 5vw, 72px) var(--pad) clamp(72px, 8vw, 120px); font-size: 18px; line-height: 1.65; }
.post-body > * + * { margin-top: 22px; }
.post-body h2 { margin-top: 56px; font-size: clamp(26px, 2.2vw, 32px); line-height: 1.12; letter-spacing: -0.025em; scroll-margin-top: calc(var(--bar) + 24px); }
.post-body h3 { margin-top: 40px; font-size: 21px; line-height: 1.2; letter-spacing: -0.015em; }
.post-body h2 + *, .post-body h3 + * { margin-top: 14px; }
.post-body a { text-decoration: underline; text-decoration-color: var(--lavender); text-decoration-thickness: 2px; text-underline-offset: 3px; transition: text-decoration-color var(--d1) var(--ease); }
.post-body a:hover { text-decoration-color: var(--purple); }
.post-body ul, .post-body ol { display: grid; gap: 8px; }
.post-body ul li { position: relative; padding-left: 22px; }
.post-body ul li::before { content: ""; position: absolute; left: 2px; top: .68em; width: 6px; height: 6px; background: var(--ink); }
.post-body ol { counter-reset: n; }
.post-body ol li { position: relative; padding-left: 34px; counter-increment: n; }
.post-body ol li::before { content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: .2em; color: var(--purple); font-family: var(--mono); font-size: 12px; }
.post-body blockquote { margin-left: 0; margin-right: 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--purple); font-size: clamp(21px, 1.8vw, 26px); line-height: 1.3; letter-spacing: -0.015em; }
.post-body code { padding: 1px 6px; background: var(--grey); font-family: var(--mono); font-size: .85em; }
.post-body pre { overflow-x: auto; padding: 18px 20px; background: var(--ink); color: var(--paper); font-size: 14px; line-height: 1.5; }
.post-body pre code { padding: 0; background: none; }
.post-table { overflow-x: auto; border: 1px solid var(--line); }
.post-body table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.post-body th, .post-body td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.post-body th { background: var(--grey); font-weight: 500; }
.post-body tr:last-child td { border-bottom: 0; }
.post-figure img { width: 100%; height: auto; background: var(--grey); }
.post-figure figcaption { margin-top: 10px; color: var(--mid); font-size: 11px; }

/* ---------- Phone-only pieces (shown in the max-width: 700px block below) ---------- */
.build-tabs, .report-open, .report-bar, .slider-dots { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .bar-nav .bar-cell:nth-child(n+4) { display: none; }
  .mega-in { grid-template-columns: 1fr 1fr 300px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pain-grid, .gain-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gain--big { grid-row: auto; min-height: 380px; }
  .cards > li:nth-child(3n) { border-right: 1px solid var(--line); }
  .cards > li:nth-child(2n) { border-right: 0; }
  .post-grid { grid-template-columns: 1fr; }
  .post-toc { display: none; }
  .post-body { margin: 0 auto; }
  .build-grid { grid-template-columns: 1fr; }
  .build-nav { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step { min-height: 560px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .step:nth-child(2n) { border-right: 0; }
  .step:nth-child(1) .step-card { --h: 300px !important; }
  .step:nth-child(2) .step-card { --h: 360px !important; }
  .step:nth-child(3) .step-card { --h: 300px !important; }
  .step:nth-child(4) .step-card { --h: 360px !important; }
}
@media (max-width: 960px) {
  .bar-nav, .bar-end .bar-soft, .mega { display: none; }
  .bar-burger { display: flex; }
  .strip { grid-template-columns: repeat(3, 1fr); }
  .threads { gap: 14px; }
  .threads-row, .threads-row.r1, .threads-row.r2, .threads-row.r3, .threads-row.r4 { left: 0; flex-wrap: wrap; gap: 14px 28px; }
  .thread { height: 44px; padding: 0 14px; font-size: 16px; cursor: default; touch-action: auto; }
  .strip li:nth-child(3n) { border-right: 0; }
  .strip li:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .row, .row:nth-child(even) { grid-template-columns: 1fr; }
  .row:nth-child(even) .row-copy { order: 0; }
  .panel { min-height: 400px; }
  .how-head { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .sec-head { grid-template-columns: 1fr; }
  .ways { grid-template-columns: 1fr; }
  .way--call { border-left: 0; border-top: 1px solid var(--line); }
  .proof-grid, .proof-grid:not(:has(.proof-quote)) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .proof-photo { min-height: 440px; }
  .proof-quote { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--pl); }
  .proof-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof-stats li:nth-child(2) { border-right: 0; }
  .proof-stats li:nth-child(-n+2) { border-bottom: 1px solid var(--pl); }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-head { border-right: 0; padding-bottom: 32px; }
  .faq-list { padding-top: 0; }
  .facts li { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .cta .frame { grid-template-columns: 1fr; }
  .cta-art { height: 220px; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .foot-col:nth-child(2) { border-right: 0; }
  .foot-col:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  :root { --side: 20px; }
  .bar-logo { padding: 0 16px; }
  .bar-logo .logo-word { display: none; }
  .bar-logo .logo-mark { height: 14px; }
  .bar-end .bar-cell { padding: 0 16px; }
  .bar-lang { display: none; }
  .cards { grid-template-columns: 1fr; }
  .pain-grid, .gain-grid { grid-template-columns: 1fr; }
  .gain--big { grid-column: auto; }
  .pain { min-height: 0; }
  .gain { min-height: 0; }
  .offer-mvp { flex-direction: column; align-items: flex-start; }
  .proof-grid, .proof-grid:not(:has(.proof-quote)) { grid-template-columns: 1fr; }
  .proof-photo { min-height: 0; aspect-ratio: 4 / 3; border-right: 0; border-bottom: 1px solid var(--pl); }
  .proof-stats li { min-height: 150px; }
  .qa-a p { padding-right: 0; }
  .field-row { grid-template-columns: 1fr; }
  .drawer .field input, .drawer .field textarea { font-size: 16px; }
  .cards > li { border-right: 0 !important; }
  .post-body { font-size: 17px; }
  .blog-more-head { flex-direction: column; align-items: flex-start; }
  .hero { min-height: calc(100svh - var(--bar) - 120px); }
  .hero-main { padding: 48px 20px 88px; }
  .chip { margin-bottom: 28px; font-size: 14px; }
  .chip { padding-right: 10px; gap: 10px; font-size: 13px; white-space: nowrap; }
  .robot, .spark, .diamond--b { display: none; }
  .diamond--a { width: 28px; right: -4px; top: 18%; }
  .hero-side .stack i { height: 32px !important; }
  .hero-cta { flex-direction: column; align-items: center; gap: 8px; margin-top: 28px; }
  .hero-cta .btn { width: 236px; justify-content: center; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .strip li { height: 120px; border-bottom: 1px solid var(--line); }
  .strip li:nth-child(3n) { border-right: 1px solid var(--line); }
  .strip li:nth-child(2n) { border-right: 0; }
  .strip li:nth-child(n+5) { border-bottom: 0; }
  .strip .strip-label { display: none; }
  .panel { min-height: 0; aspect-ratio: auto; padding: 48px 16px; }
  .steps { grid-template-columns: 1fr; }
  .step { min-height: 0; border-right: 0; }
  .step-card { height: auto !important; margin-top: 20px; min-height: 0; }
  .step-card svg { width: 36px; height: 36px; }
  .foot-cols { grid-template-columns: 1fr; }
  .foot-col { border-right: 0 !important; border-bottom: 1px solid var(--line); padding-bottom: 32px; }
  .foot-col:last-child { border-bottom: 0; }
  .band { height: 132px; }
}
/* ---------- Phones: sliders instead of long stacks, the report form in a panel, fewer words ---------- */
@media (max-width: 700px) {
  /* any [data-slider] becomes a row of cards that snaps; the next card peeks in */
  [data-slider] { display: flex !important; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
  [data-slider]::-webkit-scrollbar { display: none; }
  [data-slider] > * { flex: 0 0 84%; scroll-snap-align: start; }
  .slider-dots { display: flex; justify-content: center; gap: 6px; padding: 20px 0 24px; }
  .slider-dots button { width: 8px; height: 8px; background: color-mix(in srgb, var(--ink) 18%, transparent); transition: background-color var(--d1) var(--ease); }
  .slider-dots button.is-on { background: var(--purple); }
  .how .slider-dots button { background: rgba(255, 255, 255, .25); }
  .how .slider-dots button.is-on { background: var(--green); }

  /* the jobs strip under the hero: one row you can swipe, like the logos on mistral.ai */
  .strip > li, .strip > li:nth-child(n) { flex: 0 0 42%; height: 112px; border-bottom: 0; border-right: 1px solid var(--line); }

  /* problems, gains, steps */
  .pain-grid { gap: 1px; }
  .pain { min-height: 340px; }
  .gain-grid { gap: 1px; }
  .gain, .gain--big { min-height: 320px; grid-column: auto; grid-row: auto; }
  .steps > .step { min-height: 470px; border-right: 1px solid rgba(255, 255, 255, .12); border-bottom: 0; }
  .step .step-card { height: var(--h) !important; margin-top: auto; }
  .step:nth-child(1) .step-card { --h: 58% !important; }
  .step:nth-child(2) .step-card { --h: 68% !important; }
  .step:nth-child(3) .step-card { --h: 78% !important; }
  .step:nth-child(4) .step-card { --h: 88% !important; }

  /* what I build: tabs above one service at a time */
  .build-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 14px var(--pad); border-bottom: 1px solid var(--line); }
  .build-tabs::-webkit-scrollbar { display: none; }
  .build-tabs button { display: inline-flex; align-items: center; gap: 8px; flex: none; height: 36px; padding: 0 12px; border: 1px solid var(--line); background: var(--paper); font-size: 14px; font-weight: 500; white-space: nowrap; transition: background-color var(--d1) var(--ease), color var(--d1) var(--ease), border-color var(--d1) var(--ease); }
  .build-tabs button::before { content: ""; width: 7px; height: 7px; background: var(--c); }
  .build-tabs button.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
  .build-tabs button.is-on::before { background: var(--c); box-shadow: 0 0 0 1px rgba(255, 255, 255, .5); }
  .build-rows > .row { flex: 0 0 88%; display: flex; flex-direction: column; gap: 18px; padding: 16px var(--pad) 24px; border-bottom: 0; border-right: 1px solid var(--line); }
  .row .panel { order: -1; min-height: 0; padding: 28px 12px; }
  .row .ui { font-size: 13px; }
  .row-copy, .row:nth-child(even) .row-copy { order: 0; gap: 20px; padding: 0; }
  .row h3 { margin-top: 12px; font-size: 26px; }
  .row-text { margin-top: 12px; font-size: 15px; }
  .row-copy .uses-label, .row-copy .uses { display: none; }

  /* the free report: a button on the card, the form in a full-screen panel */
  .report-open { display: inline-flex; align-self: flex-start; }
  .report-wrap {
    position: fixed; inset: 0; z-index: 72;
    overflow-y: auto; overscroll-behavior: contain;
    padding: 0 var(--pad) 32px;
    background: var(--purple-deep);
    transform: translateX(100%); visibility: hidden;
    transition: transform var(--d2) var(--ease), visibility 0s linear var(--d2);
  }
  .is-report .report-wrap { transform: none; visibility: visible; transition-delay: 0s; }
  .report-bar { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: stretch; height: var(--bar); margin: 0 calc(-1 * var(--pad)) 20px; background: var(--purple-deep); border-bottom: 1px solid rgba(255, 255, 255, .16); }
  .report-bar .mono { display: flex; align-items: center; padding: 0 var(--pad); color: var(--lavender); }
  .report-bar .drawer-close { border-left-color: rgba(255, 255, 255, .16); }
  .report-bar .drawer-close:hover { background: rgba(255, 255, 255, .08); }
  .report-bar .drawer-close span::before, .report-bar .drawer-close span::after { background: var(--paper); }
  .report-wrap .report-form { max-width: none; }

  /* fewer words: the helper lines under section titles go, titles, buttons and the content stay */
  .sec-head p, .build .head p, .how-head p, .faq-head p, .cta p { display: none; }
  .sec-head { padding-bottom: 32px; }
  .how-head .btn { margin-top: 0; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .foot-col:first-child { display: none; }
  .foot-col, .foot-col:nth-child(n) { border-bottom: 0 !important; border-right: 1px solid var(--line) !important; padding-bottom: 28px; }
  .foot-col:nth-child(3) { border-right: 0 !important; }
  .foot-col:last-child { grid-column: 1 / -1; border-right: 0 !important; border-top: 1px solid var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
