/* Keyplan - HTML template by Omnium Labs
   Colours, fonts and the one radius live in :root. Change them here and the whole site follows. */

:root {
  --paper: #f1eee4;        /* page */
  --paper-2: #e7e2d4;      /* panels, photo placeholder */
  --ink: #1f2550;          /* text */
  --muted: #5d6080;        /* small text */
  --line: #2f3a8f;         /* drawing lines, crosshair, links */
  --mark: #e4ff3c;         /* review flags */
  --on-mark: #1f2550;
  --rule: rgba(31, 37, 80, .18);
  --grid: rgba(47, 58, 143, .07);
  --f-head: "Tomorrow", system-ui, sans-serif;
  --f-text: "Overpass", system-ui, sans-serif;
  --f-mono: "Overpass Mono", ui-monospace, monospace;
  --head-weight: 500;
  --radius: 2px;
  --gut: clamp(16px, 3vw, 40px);
  --header: 64px;
  --ease: cubic-bezier(.22, .61, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.55 var(--f-text);
  /* drafting paper: a faint 24 px grid */
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.defs { position: absolute; }
::selection { background: var(--line); color: var(--paper); }
:focus-visible { outline: 2px solid var(--line); outline-offset: 3px; }

.mono, .label, .kicker { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.label { color: var(--muted); margin-bottom: 14px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--line); margin-bottom: 22px; }
.mk { flex: none; }
.h1 { font: var(--head-weight) clamp(40px, 4.5vw, 86px)/.98 var(--f-head); letter-spacing: -.035em; }
.h2 { font: var(--head-weight) clamp(30px, 3.4vw, 56px)/1.04 var(--f-head); letter-spacing: -.03em; max-width: 18ch; }
.h3 { font: var(--head-weight) clamp(20px, 1.6vw, 26px)/1.15 var(--f-head); letter-spacing: -.015em; }
.lead { font-size: clamp(17px, 1.25vw, 20px); max-width: 44ch; color: var(--ink); }
.wrap { max-width: 1680px; margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); }
.sec { padding-top: clamp(72px, 8vw, 132px); padding-bottom: clamp(72px, 8vw, 132px); border-top: 1px solid var(--rule); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--paper); padding: 10px 14px; }
.skip:focus { top: 12px; }

/* ---------- buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 24px;
  font: 500 14px/1 var(--f-mono); letter-spacing: .05em; text-transform: uppercase; text-decoration: none;
  background: var(--ink); color: var(--paper); border: 1px solid var(--ink); border-radius: var(--radius);
  overflow: hidden; isolation: isolate; transition: color .3s var(--ease), border-color .3s var(--ease);
}
/* hover: a ruled line sweeps across like a drafting pen */
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--line); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.btn:hover::before { transform: scaleX(1); }
.btn:hover { border-color: var(--line); }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { color: var(--paper); }
.btn--small { min-height: 40px; padding: 0 16px; font-size: 12px; }

/* ---------- header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 60; height: var(--header); display: flex; align-items: center; gap: 28px;
  padding: 0 var(--gut); border-bottom: 1px solid var(--rule);
  background: color-mix(in srgb, var(--paper) 82%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.logo { display: inline-flex; align-items: center; gap: 10px; font: 600 19px/1 var(--f-head); letter-spacing: -.02em; text-decoration: none; }
.logo .mk { color: var(--line); }
.nav { display: flex; gap: 26px; margin-left: auto; font: 400 13px/1 var(--f-mono); letter-spacing: .05em; text-transform: uppercase; }
.nav a { text-decoration: none; padding: 6px 0; background: linear-gradient(var(--line), var(--line)) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease); }
.nav a:hover, .nav a[aria-current] { background-size: 100% 1px; }
.menu-btn { display: none; margin-left: auto; padding: 10px 0; }
.menu { position: fixed; inset: var(--header) 0 0; z-index: 55; background: var(--paper); padding: 24px var(--gut); overflow: auto; }
.menu[hidden] { display: none; }
.menu a { display: flex; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); font: var(--head-weight) clamp(28px, 7vw, 44px)/1.05 var(--f-head); letter-spacing: -.03em; text-decoration: none; }
.menu a .mono { color: var(--line); }

/* ---------- the drawing: lines draw on scroll, then the photo comes in under them ---------- */
.draw { position: relative; overflow: hidden; background: var(--paper-2); border-radius: var(--radius); }
.draw img { width: 100%; height: 100%; object-fit: cover; }
.draw .lines { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--line); stroke-width: 1.15; stroke-linecap: square; pointer-events: none; }
.draw .lines path { vector-effect: non-scaling-stroke; }
.motion .draw .lines path { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.motion .draw.drawing .lines path { stroke-dashoffset: 0; }
/* after the lines: a pencil pass hatches the tones in (top left to bottom right), then the colour follows the same way */
.draw .sketch { position: absolute; inset: 0; filter: grayscale(1) contrast(1.5) brightness(1.12); mix-blend-mode: multiply; pointer-events: none; }
.motion .draw img:not(.sketch) {
  -webkit-mask: linear-gradient(120deg, #000 35%, transparent 65%) 100% 100% / 260% 260% no-repeat;
  mask: linear-gradient(120deg, #000 35%, transparent 65%) 100% 100% / 260% 260% no-repeat;
  transition: -webkit-mask-position 2.6s cubic-bezier(.45,0,.25,1), mask-position 2.6s cubic-bezier(.45,0,.25,1);
}
.motion .draw .sketch {
  -webkit-mask: linear-gradient(120deg, #000 44%, transparent 56%) 100% 100% / 260% 260% no-repeat, repeating-linear-gradient(-52deg, #000 0 1.3px, rgba(0,0,0,.3) 1.3px 4px);
  mask: linear-gradient(120deg, #000 44%, transparent 56%) 100% 100% / 260% 260% no-repeat, repeating-linear-gradient(-52deg, #000 0 1.3px, rgba(0,0,0,.3) 1.3px 4px);
  -webkit-mask-composite: source-in; mask-composite: intersect;
  transition: -webkit-mask-position 2.2s cubic-bezier(.4,0,.3,1), mask-position 2.2s cubic-bezier(.4,0,.3,1);
}
.motion .draw.is-sketch .sketch { -webkit-mask-position: 0 0, 0 0; mask-position: 0 0, 0 0; }
.motion .draw.is-photo img:not(.sketch) { -webkit-mask-position: 0 0; mask-position: 0 0; }
.motion .draw.done img:not(.sketch) { -webkit-mask: none; mask: none; }
.draw.is-photo .lines { opacity: 0; transition: opacity 2.6s cubic-bezier(.45,0,.25,1); }   /* out exactly as the colour comes in */
/* page heads (drawn on time, not the home hero) are quicker */
.motion .draw[data-now]:not(.draw--hero) img:not(.sketch) { transition-duration: 1.2s; }
.motion .draw[data-now]:not(.draw--hero) .sketch { transition-duration: 1s; }
.draw[data-now]:not(.draw--hero).is-photo .lines { transition-duration: 1.2s; }
/* drawings below the hero follow the scroll (main.js sets the values), so no timed transitions */
.motion .draw.scrub img, .motion .draw.scrub .lines, .motion .draw.scrub .lines path { transition: none; }
/* sections that hold still while their drawings play (desktop; main.js adds .holding and sizes the gap) */
.holding .hold-in { position: sticky; top: var(--header); }
.holding.uses { padding-top: 0; overflow-x: clip; }
.holding.uses .hold-in { padding-top: clamp(32px, 4vw, 64px); }
.holding .uses-grid { display: flex; width: max-content; gap: clamp(24px, 3vw, 48px); margin-top: clamp(28px, 3vw, 48px); will-change: transform; }
.holding .use { flex: 0 0 var(--cw, 600px); }
.holding .draw--final { aspect-ratio: auto; height: max(300px, calc(100vh - var(--header) - 300px)); }
.holding .final-text { padding-top: 36px; padding-bottom: 40px; }
.motion .draw { background: transparent; }
/* ruler ticks round the big drawings */
.draw--hero::after, .draw--steps::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 24px) 0 0 / 100% 7px no-repeat,
              repeating-linear-gradient(var(--ink) 0 1px, transparent 1px 24px) 0 0 / 7px 100% no-repeat;
  opacity: .5;
}

/* review pins: the same square-and-cross marker as the cursor */
.pin { position: absolute; left: var(--x); top: var(--y); z-index: 2; color: var(--mark); transform: translate(-50%, -50%); }
.pin > svg { background: var(--paper); }
.pin-note {
  position: absolute; left: calc(100% + 26px); top: 50%; transform: translateY(-50%); width: max-content; max-width: 220px;
  padding: 8px 10px; background: var(--paper); color: var(--ink); border: 1px solid var(--rule); font-size: 11px; line-height: 1.35;
  letter-spacing: .03em; text-transform: none;
}
.pin-note::before { content: ""; position: absolute; right: 100%; top: 50%; width: 20px; height: 1px; background: var(--ink); }
.pin-note b { display: table; color: var(--on-mark); background: var(--mark); padding: 1px 4px; font-weight: 500; letter-spacing: .06em; margin: 0 0 4px -4px; }
.pin.flip .pin-note { left: auto; right: calc(100% + 26px); }
.pin.flip .pin-note::before { right: auto; left: 100%; }
.pin > svg { background: var(--ink); }
.motion .pin { opacity: 0; transition: opacity .3s var(--ease); }
.motion .pin .pin-note { clip-path: inset(0 100% 0 0); transition: clip-path .6s var(--ease) .15s; }
.motion .pin.flip .pin-note { clip-path: inset(0 0 0 100%); }
.motion .pin.on { opacity: 1; }
.motion .pin.on .pin-note { clip-path: inset(0 0 0 0); }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 3.5vw, 64px); align-items: center;
  min-height: 100svh; padding: calc(var(--header) + 48px) var(--gut) 56px; max-width: 1920px; margin: 0 auto;
}
.hero .h1 .ln { display: block; }
.dim { display: flex; align-items: center; gap: 12px; margin: 28px 0 26px; color: var(--line); max-width: 420px; }
.dim i { flex: 1; height: 1px; background: currentColor; position: relative; }
.dim i:first-child::before, .dim i:last-child::after { content: ""; position: absolute; top: -6px; width: 1px; height: 13px; background: currentColor; transform: skewX(-40deg); }
.dim i:first-child::before { left: 0; } .dim i:last-child::after { right: 0; }
.motion .dim i { transform: scaleX(0); transition: transform 1.1s var(--ease) .5s; }
.motion .dim i:first-child { transform-origin: right; } .motion .dim i:last-child { transform-origin: left; }
.motion .in .dim i, .motion .hero.in .dim i { transform: none; }
.motion .hero .h1 .ln { clip-path: inset(0 0 105% 0); transform: translateY(.3em); transition: clip-path .9s var(--ease), transform .9s var(--ease); }
.motion .hero.in .h1 .ln { clip-path: inset(0 0 -10% 0); transform: none; }
.motion .hero.in .h1 .ln:nth-child(2) { transition-delay: .1s; } .motion .hero.in .h1 .ln:nth-child(3) { transition-delay: .2s; }
.draw--hero { width: 100%; }

/* ---------- formats strip ---------- */
.formats { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; padding: 22px var(--gut); border-top: 1px solid var(--rule); max-width: 1920px; margin: 0 auto; }
.formats .label { margin: 0; }
.formats-list { display: flex; flex-wrap: wrap; gap: 10px 30px; font-size: 13px; }
.formats-list li { display: inline-flex; align-items: center; gap: 8px; }
.formats-list .mk { color: var(--line); }

/* ---------- numbers ---------- */
.numbers-row { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(48px, 6vw, 90px); border-top: 1px solid var(--ink); }
.num { padding: 26px 28px 0 0; }
.num + .num { padding-left: 28px; border-left: 1px solid var(--rule); }
.num-n { font: var(--head-weight) clamp(64px, 8vw, 140px)/.9 var(--f-head); letter-spacing: -.05em; color: var(--line); font-variant-numeric: tabular-nums; }
.num-n small { font-size: .38em; letter-spacing: 0; margin-left: 4px; }
.num-l { margin-top: 18px; max-width: 30ch; color: var(--muted); }

/* ---------- steps ---------- */
.steps-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
.steps-fig { position: sticky; top: calc(var(--header) + 32px); }
.draw--steps { max-height: calc(100svh - var(--header) - 64px); margin: 0 auto; }
.step-list { margin-top: 56px; counter-reset: s; }
.step { padding: 34px 0 40px; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 56px 1fr; gap: 6px 0; transition: opacity .4s var(--ease); }
.step p { grid-column: 2; color: var(--muted); max-width: 46ch; margin-top: 10px; }
.step-n { color: var(--line); padding-top: 6px; }
.motion .step { opacity: .35; }
.motion .step.on { opacity: 1; }
/* wide screens: each step gets its own stretch of scroll, so every pin lands on the drawing before the section moves on */
@media (min-width: 901px) {
  .motion .step { min-height: 46vh; align-content: start; }
  .motion .step-list { padding-bottom: 24vh; }
}

/* ---------- review log ---------- */
.log-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 clamp(32px, 6vw, 110px); align-items: end; }
.log-head .kicker { grid-column: 1 / -1; justify-self: start; }
.log-text { color: var(--muted); max-width: 44ch; }
.log-table { margin-top: clamp(40px, 5vw, 72px); font-size: 13px; border-top: 1px solid var(--ink); }
.log-row { display: grid; grid-template-columns: 110px 80px minmax(0, 1fr) 160px 90px; gap: 16px; padding: 16px 0; border-bottom: 1px dashed var(--rule); align-items: center; text-transform: none; letter-spacing: .02em; }
.log-row--head { color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-size: 11px; border-bottom-style: solid; }
.log-row span:nth-child(3) { font-family: var(--f-text); font-size: 15px; letter-spacing: 0; }
.tag { display: inline-block; padding: 4px 8px; font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; border: 1px solid currentColor; border-radius: var(--radius); }
.tag--Flag { background: var(--mark); color: var(--on-mark); border-color: var(--mark); }
.tag--Note { color: var(--muted); }
.tag--Pass { color: var(--line); }
.motion .log-row:not(.log-row--head) { clip-path: inset(0 100% 0 0); transition: clip-path .7s var(--ease); }
.motion .log-table.in .log-row { clip-path: inset(0 0 0 0); }

/* ---------- use cases ---------- */
.uses-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5vw, 80px) clamp(20px, 3vw, 48px); margin-top: clamp(48px, 6vw, 90px); }
.use { display: grid; grid-template-columns: 48px 1fr; gap: 10px 0; text-decoration: none; }
.use .draw { grid-column: 1 / -1; aspect-ratio: 3 / 2; margin-bottom: 18px; }
.use-n { color: var(--line); padding-top: 6px; }
.use p { grid-column: 2; color: var(--muted); max-width: 42ch; }
.use .h3 { transition: color .3s var(--ease); }
.use:hover .h3 { color: var(--line); }

/* ---------- pricing ---------- */
.pricing-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.billing { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--ink); border-radius: var(--radius); padding: 3px; }
.billing-opt { position: relative; z-index: 1; padding: 11px 20px; transition: color .3s var(--ease); }
.billing-opt[aria-pressed="true"] { color: var(--paper); }
.billing-knob { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); background: var(--ink); border-radius: var(--radius); transition: transform .45s var(--ease); }
.billing[data-on="yearly"] .billing-knob { transform: translateX(100%); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(40px, 5vw, 72px); border: 1px solid var(--ink); }
.plan { display: flex; flex-direction: column; padding: 32px clamp(20px, 2.2vw, 36px) 36px; }
.plan + .plan { border-left: 1px solid var(--ink); }
.plan[data-featured]:not([data-featured=""]) { background: var(--paper-2); }
.plan-top { display: flex; justify-content: space-between; gap: 10px; }
.plan-flag { color: var(--mark); }
.plan-flag { color: var(--line); background: var(--mark); padding: 2px 6px; }
.plan-flag:empty { display: none; }
.plan-price { display: flex; align-items: flex-start; gap: 4px; margin-top: 44px; font: var(--head-weight) clamp(56px, 5vw, 88px)/.9 var(--f-head); letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.plan-price .cur { font-size: .4em; margin-top: .2em; letter-spacing: 0; }
.plan-price.talk .cur { display: none; }
.plan-per { color: var(--muted); margin-top: 12px; }
.plan-text { margin-top: 22px; color: var(--muted); }
.plan-list { margin: 26px 0 34px; border-top: 1px solid var(--rule); }
.plan-list li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.plan-list .mk { color: var(--line); }
.plan .btn { margin-top: auto; justify-content: center; }
.plan[data-featured]:not([data-featured=""]) .btn { background: var(--ink); color: var(--paper); }
.amt.tick { animation: tick .5s var(--ease); }
@keyframes tick { 0% { opacity: 0; transform: translateY(.25em); } 100% { opacity: 1; transform: none; } }
.pricing-note { margin-top: 22px; color: var(--muted); text-transform: none; letter-spacing: .02em; }
.pricing-note a { color: var(--line); }

/* ---------- quote ---------- */
.quote blockquote { max-width: 1100px; }
.quote .h2 { max-width: 30ch; }
.quote footer { display: flex; align-items: center; gap: 10px; margin-top: 32px; color: var(--muted); }
.quote footer .mk { color: var(--line); }

/* ---------- final call ---------- */
.final { border-top: 1px solid var(--rule); }
.draw--final { aspect-ratio: 21 / 8; border-radius: 0; }
.final-text { padding-top: clamp(48px, 6vw, 96px); padding-bottom: clamp(80px, 10vw, 150px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px clamp(32px, 6vw, 110px); align-items: end; }
.final-text .h1 { font-size: clamp(36px, 4.6vw, 80px); }
.final-text .btns { grid-column: 2; margin-top: 0; }
.final-text .lead { grid-column: 2; grid-row: 1; align-self: end; }

/* ---------- rise: headings come up from the line under them ---------- */
.motion .rise { clip-path: inset(0 0 100% 0); transform: translateY(24px); transition: clip-path 1s var(--ease), transform 1s var(--ease); }
.motion .rise.in { clip-path: inset(0 0 -20% 0); transform: none; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--ink); padding: clamp(56px, 7vw, 100px) 0 28px; }
.footer-top { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid var(--rule); }
.footer-mark { display: inline-flex; align-items: center; gap: 16px; font: 600 clamp(48px, 8vw, 128px)/.9 var(--f-head); letter-spacing: -.05em; }
.footer-mark .mk { color: var(--line); width: .32em; height: .32em; }
.footer-tag { color: var(--muted); }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding: 40px 0 56px; }
.footer-cols p { margin-bottom: 6px; }
.footer-cols a { text-decoration: none; }
.footer-cols a:hover { color: var(--line); }
.footer-social { display: flex; gap: 18px; }
.footer-small { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; color: var(--muted); text-transform: none; letter-spacing: .02em; }
.footer-small a { margin-right: 14px; text-decoration: none; }

/* ---------- back to top ---------- */
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 50; width: 46px; height: 46px; display: grid; place-items: center; background: var(--paper); color: var(--ink); border: 1px solid var(--ink); border-radius: var(--radius); opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .3s, transform .3s var(--ease), background .3s, color .3s; }
.to-top.on { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--ink); color: var(--paper); }

/* ---------- crosshair cursor: two lines across the screen, coordinates on the rulers ---------- */
.xhair { display: none; }
.has-xhair, .has-xhair a, .has-xhair button { cursor: none; }
.has-xhair input, .has-xhair textarea, .has-xhair select { cursor: text; }
.has-xhair .xhair { display: block; position: fixed; inset: 0; z-index: 100; pointer-events: none; color: var(--line); opacity: 0; transition: opacity .3s; }
.has-xhair .xhair.on { opacity: 1; }
.xh-h, .xh-v { position: absolute; background: currentColor; opacity: .4; will-change: transform; }
.xh-h { left: 0; right: 0; top: 0; height: 1px; }
.xh-v { top: 0; bottom: 0; left: 0; width: 1px; }
.xh-x, .xh-y { position: absolute; font-size: 10px; letter-spacing: .08em; padding: 3px 5px; background: var(--paper); color: var(--line); border: 1px solid currentColor; will-change: transform; white-space: nowrap; }
.xh-x { left: 0; bottom: 10px; }
.xh-y { left: 10px; top: 0; }
.xh-mk { position: absolute; left: 0; top: 0; will-change: transform; }
/* the marker: on a link its square opens into four corner ticks, like a sight locking on */
.xh-mk svg { display: block; margin: -7px 0 0 -7px; overflow: visible; }
.xh-mk svg path { transition: transform .35s var(--ease), opacity .2s; transform-origin: 7px 7px; }
.xh-mk b { position: absolute; left: 16px; top: -22px; font-size: 10px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .35s var(--ease); }
.xhair.on-link .xh-mk .c1 { transform: translate(-6px, -6px); }
.xhair.on-link .xh-mk .c2 { transform: translate(6px, -6px); }
.xhair.on-link .xh-mk .c3 { transform: translate(6px, 6px); }
.xhair.on-link .xh-mk .c4 { transform: translate(-6px, 6px); }
.xhair.on-link .xh-mk .x { transform: scale(.25); opacity: 0; }
.xhair.on-link .xh-mk b { opacity: 1; transform: none; left: 20px; top: -26px; }
/* faint ruler ticks along the bottom and left edges while the crosshair is on */
.has-xhair .xhair::before, .has-xhair .xhair::after { content: ""; position: absolute; opacity: .45; }
.has-xhair .xhair::before { left: 0; right: 0; bottom: 0; height: 6px; background: repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 24px); }
.has-xhair .xhair::after { top: 0; bottom: 0; left: 0; width: 6px; background: repeating-linear-gradient(currentColor 0 1px, transparent 1px 24px); }

/* ---------- intro: the title block of the sheet fills in, line by line ---------- */
.boot { display: none; }
.booting .boot { display: grid; place-items: center; position: fixed; inset: 0; z-index: 150; background: var(--paper); transition: opacity .6s var(--ease), visibility .6s; }
.booting.booted .boot { opacity: 0; visibility: hidden; }
.boot-block { width: min(440px, calc(100vw - 32px)); border: 1px solid var(--ink); }
.boot-row { display: grid; grid-template-columns: 120px 1fr; border-bottom: 1px solid var(--ink); font-size: 12px; }
.boot-row:last-child { border-bottom: 0; }
.boot-row span { padding: 12px 14px; }
.boot-row span:first-child { border-right: 1px solid var(--ink); color: var(--muted); }
.boot-row span:last-child { color: var(--ink); }
.booting .boot-row span:last-child { clip-path: inset(0 100% 0 0); }
.boot-row.on span:last-child { clip-path: inset(0 0 0 0) !important; transition: clip-path .35s steps(14); }


/* ---------- inner pages: the page head is a title block, like the corner of a sheet ---------- */
.phead { padding: calc(var(--header) + clamp(48px, 7vw, 110px)) 0 clamp(48px, 6vw, 90px); }
.phead-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 32px clamp(32px, 6vw, 110px); align-items: end; }
.phead .h1 { max-width: 16ch; }
.phead .lead { color: var(--muted); }
.tblock { border: 1px solid var(--ink); font-size: 12px; }
.tblock div { display: grid; grid-template-columns: 96px 1fr; border-bottom: 1px solid var(--ink); }
.tblock div:last-child { border-bottom: 0; }
.tblock dt, .tblock dd { margin: 0; padding: 10px 12px; }
.tblock dt { border-right: 1px solid var(--ink); color: var(--muted); }
.motion .tblock dd { clip-path: inset(0 100% 0 0); transition: clip-path .5s steps(12); }
.motion .phead.in .tblock dd { clip-path: inset(0 0 0 0); }
.motion .phead.in .tblock div:nth-child(2) dd { transition-delay: .15s; }
.motion .phead.in .tblock div:nth-child(3) dd { transition-delay: .3s; }
.motion .phead.in .tblock div:nth-child(4) dd { transition-delay: .45s; }
.motion .phead.in .dim i { transform: none; }
.phead-fig { margin-top: clamp(40px, 5vw, 72px); }
.draw--wide { aspect-ratio: 21 / 9; }

/* ---------- feature rows (platform, use cases): drawing on one side, text on the other ---------- */
.feat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px clamp(32px, 6vw, 110px); align-items: center; }
.feat + .feat { margin-top: clamp(72px, 9vw, 150px); }
.feat:nth-child(even) .feat-fig { order: 2; }
.feat-fig .draw { aspect-ratio: 4 / 3; }
.feat .h2 { max-width: 20ch; }
.feat-text > p:not(.kicker) { margin-top: 20px; color: var(--muted); max-width: 48ch; }
.ticks { margin-top: 28px; border-top: 1px solid var(--rule); max-width: 520px; }
.ticks li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.ticks .mk { color: var(--line); }
.feat-quote { margin-top: 28px; padding-left: 18px; border-left: 2px solid var(--line); max-width: 46ch; }
.feat-quote p { font: var(--head-weight) 19px/1.35 var(--f-head); }
.feat-quote footer { margin-top: 10px; color: var(--muted); }
.cells { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(40px, 5vw, 72px); border-top: 1px solid var(--ink); }
.cell { padding: 24px 24px 8px 0; }
.cell + .cell { padding-left: 24px; border-left: 1px solid var(--rule); }
.cell .mk { color: var(--line); margin-bottom: 18px; }
.cell p { margin-top: 10px; color: var(--muted); font-size: 15px; }
.cells--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.jump a { padding: 10px 14px; border: 1px solid var(--rule); text-decoration: none; transition: border-color .3s, color .3s; }
.jump a:hover { border-color: var(--line); color: var(--line); }

/* ---------- integrations ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { padding: 10px 14px; border: 1px solid var(--rule); border-radius: var(--radius); transition: background .3s, color .3s, border-color .3s; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.int-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 32px; border-top: 1px solid var(--ink); border-left: 1px solid var(--rule); }
.int { display: flex; flex-direction: column; gap: 12px; min-height: 210px; padding: 24px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.int[hidden] { display: none; }
.int-top { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.int p { color: var(--muted); font-size: 15px; }
.int .tag { margin-top: auto; align-self: flex-start; }
.tag--Live { color: var(--line); }
.tag--Beta { background: var(--mark); color: var(--on-mark); border-color: var(--mark); }
.api { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px clamp(32px, 6vw, 110px); align-items: center; }
.api p:not(.kicker) { margin-top: 20px; color: var(--muted); max-width: 46ch; }
.code { margin: 0; padding: 26px 28px; background: var(--ink); color: var(--paper); font: 400 13px/1.7 var(--f-mono); overflow-x: auto; border-radius: var(--radius); }

/* ---------- pricing page: comparison and questions ---------- */
.cmp-table { margin-top: clamp(40px, 5vw, 72px); border-top: 1px solid var(--ink); font-size: 15px; }
.cmp-row { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); align-items: center; }
.cmp-row--head { position: sticky; top: var(--header); z-index: 3; background: var(--paper); border-bottom: 1px solid var(--ink); }
.cmp-row[data-group]:not([data-group=""]) { padding-top: 32px; border-bottom-color: var(--ink); }
.cmp-row[data-group]:not([data-group=""]) .cmp-name { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--line); }
.cmp-row[data-group]:not([data-group=""]) .cmp { visibility: hidden; }
.cmp { display: flex; align-items: center; }
.cmp svg { display: none; color: var(--line); }
.cmp[data-v="yes"] svg { display: block; }
.cmp[data-v="yes"] em { display: none; }
.cmp em { font-style: normal; }
.cmp[data-v=""]::before { content: "-"; color: var(--muted); }
.cmp-tabs { display: none; }
@media (max-width: 720px) {
  .cmp-tabs { display: flex; margin-top: clamp(40px, 5vw, 72px); }
  .cmp-tabs + .cmp-table { margin-top: 20px; }
  .cmp-row, .cmp-row--head { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) !important; }
  .cmp-table[data-plan] .cmp-row > :not(:first-child) { display: none; }
  .cmp-table[data-plan="1"] .cmp-row > :nth-child(2), .cmp-table[data-plan="2"] .cmp-row > :nth-child(3),
  .cmp-table[data-plan="3"] .cmp-row > :nth-child(4), .cmp-table[data-plan="4"] .cmp-row > :nth-child(5) { display: flex; }
}
.faq { margin-top: clamp(32px, 4vw, 56px); border-top: 1px solid var(--ink); max-width: 980px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; list-style: none; cursor: pointer; font: var(--head-weight) clamp(18px, 1.5vw, 22px)/1.25 var(--f-head); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .mk { color: var(--line); transition: transform .35s var(--ease); }
.faq details[open] summary .mk { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; color: var(--muted); max-width: 64ch; }

/* ---------- changelog: each release is a revision row ---------- */
.rels { border-top: 1px solid var(--ink); }
.rel { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 24px clamp(32px, 6vw, 110px); padding: clamp(36px, 4vw, 56px) 0; border-bottom: 1px solid var(--rule); }
.rel-meta { position: sticky; top: calc(var(--header) + 24px); align-self: start; }
.rel-v { font: var(--head-weight) clamp(36px, 4vw, 64px)/.9 var(--f-head); letter-spacing: -.04em; color: var(--line); }
.rel-meta .mono { margin-top: 12px; color: var(--muted); }
.rel-items { margin-top: 22px; }
.rel-items li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 12px 0; border-top: 1px dashed var(--rule); }
.rel-items .tag { justify-self: start; }
.tag--New { background: var(--mark); color: var(--on-mark); border-color: var(--mark); }
.tag--Improved { color: var(--line); }
.tag--Fixed { color: var(--muted); }

/* ---------- journal ---------- */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(40px, 4vw, 64px) clamp(20px, 2.4vw, 40px); }
.post-card { display: flex; flex-direction: column; text-decoration: none; }
.post-card .draw { aspect-ratio: 4 / 3; margin-bottom: 20px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); margin-bottom: 12px; }
.post-meta b { color: var(--line); font-weight: 500; }
.post-card p:last-child { margin-top: 12px; color: var(--muted); }
.post-card .h3 { transition: color .3s var(--ease); }
.post-card:hover .h3 { color: var(--line); }
.article { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr) minmax(0, 2fr); gap: 32px clamp(32px, 5vw, 80px); padding-top: clamp(48px, 6vw, 90px); }
.article-side { position: sticky; top: calc(var(--header) + 24px); align-self: start; color: var(--muted); }
.article-side p + p { margin-top: 8px; }
.article-body { max-width: 66ch; font-size: 18px; line-height: 1.65; }
.article-body p + p, .article-body h2 + p { margin-top: 18px; }
.article-body h2 { margin-top: 44px; }
.next { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; text-decoration: none; }
.next .h2 { display: block; margin-top: 4px; max-width: 24ch; transition: color .3s var(--ease); }
.next:hover .h2 { color: var(--line); }

/* ---------- about ---------- */
.story { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px clamp(32px, 6vw, 110px); }
.story-text p { font-size: clamp(18px, 1.4vw, 22px); line-height: 1.5; max-width: 52ch; }
.story-text p + p { margin-top: 20px; }
.numbers-row--4 { grid-template-columns: repeat(4, 1fr); }
.numbers-row--4 .num-n { font-size: clamp(48px, 5.5vw, 96px); }
.team { margin-top: clamp(40px, 5vw, 72px); border-top: 1px solid var(--ink); }
.team li { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 4fr); gap: 16px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.team .mono { color: var(--line); }
.team li span:last-child { color: var(--muted); }
.about-photo { margin-top: clamp(48px, 6vw, 90px); }

/* ---------- book a demo: the form ---------- */
.demo { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px clamp(32px, 6vw, 110px); align-items: start; }
.demo-side .draw { aspect-ratio: 3 / 2; margin-top: 36px; }
.form { border: 1px solid var(--ink); padding: clamp(24px, 3vw, 44px); background: var(--paper); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.field { display: block; margin-bottom: 26px; }
.field > span, .field legend { display: block; margin-bottom: 8px; color: var(--muted); font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding: 0; }
fieldset.field { border: 0; margin: 0 0 26px; padding: 0; min-width: 0; }
.field input, .field textarea { width: 100%; padding: 10px 0; font: inherit; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; outline: 0; transition: border-color .3s; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus { border-bottom-color: var(--line); box-shadow: 0 1px 0 var(--line); }
.field.bad input, .field.bad textarea { border-bottom-color: #c2261a; }
.err { display: block; margin-top: 6px; color: #c2261a; font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span { display: inline-block; padding: 9px 14px; border: 1px solid var(--rule); border-radius: var(--radius); font-size: 14px; transition: background .25s, color .25s, border-color .25s; }
.chips input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chips input:focus-visible + span { outline: 2px solid var(--line); outline-offset: 2px; }
.check { position: relative; display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); margin-bottom: 26px; cursor: pointer; }
.check input { position: absolute; opacity: 0; }
.check i { flex: none; width: 18px; height: 18px; margin-top: 2px; border: 1px solid var(--ink); display: grid; place-items: center; }
.check input:checked + i { background: var(--ink); }
.check input:checked + i::after { content: ""; width: 9px; height: 5px; border: solid var(--paper); border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
.check input:focus-visible + i { outline: 2px solid var(--line); outline-offset: 2px; }
.check.bad i { border-color: #c2261a; }
.check a { color: var(--line); }
.form-done[hidden] { display: none; }
.form-done p { margin-top: 14px; color: var(--muted); }

/* ---------- legal pages ---------- */
.legal { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 32px clamp(32px, 6vw, 110px); }
.toc { position: sticky; top: calc(var(--header) + 24px); align-self: start; border-top: 1px solid var(--ink); }
.toc a { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--muted); transition: color .3s; }
.toc a .mk { color: var(--line); opacity: 0; transition: opacity .3s; }
.toc a.is-on { color: var(--ink); }
.toc a.is-on .mk { opacity: 1; }
.legal-body section { padding-bottom: 40px; scroll-margin-top: calc(var(--header) + 24px); }
.legal-body h2 { margin-bottom: 16px; }
.legal-body p { max-width: 68ch; color: var(--muted); }
.legal-body p + p { margin-top: 14px; }

/* ---------- 404 ---------- */
.nf { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px clamp(32px, 6vw, 110px); align-items: center; min-height: 100svh; padding: calc(var(--header) + 40px) var(--gut) 56px; max-width: 1680px; margin: 0 auto; }
.nf .draw { aspect-ratio: 3 / 2; }
.nf .lead { margin-top: 20px; color: var(--muted); }

/* ---------- smaller screens ---------- */
@media (max-width: 1100px) {
  .nav { display: none; }
  .menu-btn { display: block; }
  .header-cta { margin-left: auto; }
  .header-cta + .menu-btn { margin-left: 0; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: calc(var(--header) + 24px); gap: 32px; }
  .draw--hero { order: -1; }
  .numbers-row { grid-template-columns: 1fr; }
  .num + .num { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); margin-top: 26px; }
  .steps-grid { grid-template-columns: 1fr; }
  .steps-fig { top: calc(var(--header) + 12px); z-index: 2; }
  .draw--steps { max-height: 42svh; }
  .log-head { grid-template-columns: 1fr; gap: 20px; }
  .log-row { grid-template-columns: 80px minmax(0, 1fr) 70px; }
  .log-row span:nth-child(2), .log-row span:nth-child(4) { display: none; }
  .uses-grid { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .plan + .plan { border-left: 0; border-top: 1px solid var(--ink); }
  .final-text { grid-template-columns: 1fr; }
  .final-text .btns, .final-text .lead { grid-column: 1; grid-row: auto; }
  .draw--final { aspect-ratio: 4 / 3; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .phead-grid, .feat, .api, .story, .demo, .legal, .nf, .rel { grid-template-columns: 1fr; }
  .feat:nth-child(even) .feat-fig { order: 0; }
  .cells, .numbers-row--4 { grid-template-columns: 1fr 1fr; }
  .cell:nth-child(odd) { padding-left: 0; border-left: 0; }
  .cells--3 { grid-template-columns: 1fr; }
  .cells--3 .cell { padding-left: 0; border-left: 0; }
  .int-grid { grid-template-columns: 1fr 1fr; }
  .posts { grid-template-columns: 1fr 1fr; }
  .article { grid-template-columns: 1fr; }
  .article-side { position: static; display: flex; flex-wrap: wrap; gap: 6px 18px; }
  .article-side p + p { margin-top: 0; }
  .toc, .rel-meta { position: static; }
  .team li { grid-template-columns: 1fr; gap: 4px; }
  .nf .draw { order: -1; }
  .draw--wide { aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .header { gap: 14px; }
  .header-cta { display: none; }
  .menu-btn { margin-left: auto !important; }
  .pin-note { max-width: 150px; font-size: 10px; left: calc(100% + 16px); }
  .pin-note::before { width: 12px; }
  .pin.flip .pin-note { right: calc(100% + 16px); }
  .footer-cols { grid-template-columns: 1fr; }
  .btn { flex: 1 1 auto; justify-content: center; }
  .draw--hero .pin-note { display: none; }
  .cells, .numbers-row--4, .int-grid, .posts, .form-row { grid-template-columns: 1fr; }
  .cell { padding-left: 0 !important; border-left: 0 !important; border-top: 1px solid var(--rule); }
  .cmp-row { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 8px; font-size: 13px; }
  .rel-items li { grid-template-columns: 1fr; gap: 6px; }
}
