/* Shared page kit: one set of heroes, screens and motion for the remaining pages,
   so they read as the same website as Reachly, Postwise and Home. Motion is added only by kit-2026-11-05.js; with no script or
   reduced motion every element simply shows finished. Page files add their own look in a page stylesheet, never here. */

:root {
  --kit-ease: cubic-bezier(.22, .9, .24, 1);        /* the settle: quick arrival, long soft landing */
  --kit-ease-soft: cubic-bezier(.3, .1, .2, 1);
  --kit-nav: 56px;
  --kit-line: rgb(0 0 0 / 8%);
  --kit-glass: rgb(255 255 255 / 62%);
  --kit-shadow: 0 1px 1px rgb(16 24 40 / 4%), 0 12px 32px -12px rgb(16 24 40 / 14%), 0 40px 80px -32px rgb(16 24 40 / 22%);
  --kit-accent: var(--blue);
  --kit-wash: var(--c-ind-wash);
}
.kit-mkt { --kit-accent: var(--mk-mkt); --kit-wash: var(--c-mkt-wash); }
.kit-ops { --kit-accent: var(--mk-ops); --kit-wash: var(--c-ops-wash); }
.kit-int { --kit-accent: var(--mk-int); --kit-wash: var(--c-int-wash); }

/* ---------------------------------------------------------------- type: the shared Build headline size (DEC-136, DEC-137) */
.kit-h1 { font: 400 73px/1.04 var(--font-display); letter-spacing: -.012em; margin: 0; text-wrap: balance; color: var(--ink); }
.kit-lead { font: 400 21px/30px var(--font-text); color: var(--ink-2); margin: 16px 0 0; text-wrap: balance; max-width: 34em; }
.kit-h2 { font: 400 44px/1.1 var(--font-display); letter-spacing: -.006em; margin: 0; text-wrap: balance; color: var(--ink); }
.kit-h3 { font: 400 24px/30px var(--font-display); margin: 0; color: var(--ink); }
.kit-p { font: 400 17px/26px var(--font-text); color: var(--ink-2); margin: 8px 0 0; }
.kit-h2 em, .kit-h1 em { font-style: italic; color: var(--kit-accent); }
@media (max-width: 1279px) { .kit-h1 { font-size: 71px; } }
@media (max-width: 1023px) { .kit-h1 { font-size: 67px; } .kit-h2 { font-size: 38px; } }
@media (max-width: 767px) {
  .kit-h1 { font-size: min(13.85vw, 54px); }
  .kit-h2 { font-size: 30px; }
  .kit-lead { font-size: 19px; line-height: 27px; }
}

/* ---------------------------------------------------------------- layout */
.kit-section { padding-block: 112px; position: relative; }
.kit-head { max-width: 760px; margin-bottom: 48px; }           /* section headings are left aligned  */
.kit-head .kit-p { font-size: 19px; line-height: 28px; max-width: 36em; }
@media (max-width: 767px) { .kit-section { padding-block: 72px; } .kit-head { margin-bottom: 32px; } }

/* ---------------------------------------------------------------- hero: words first, one big visual that settles under them */
.kit-hero { position: relative; padding: 96px 0 0; text-align: center; overflow: clip; }
.kit-hero .kit-lead { margin-inline: auto; }
.kit-hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px; margin-top: 28px; }
.kit-hero-stage { position: relative; margin-top: 64px; }
.kit-hero-wash { position: absolute; inset: 0 0 auto; height: 88%; pointer-events: none; z-index: -1;
  background: radial-gradient(60% 60% at 50% 78%, color-mix(in srgb, var(--kit-accent) 16%, transparent), transparent 72%); }
.kit-hero--split { text-align: left; padding-bottom: 72px; }
.kit-hero--split > .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.kit-hero--split .kit-lead { margin-inline: 0; }
.kit-hero--split .kit-hero-actions { justify-content: flex-start; }
.kit-hero--split .kit-hero-stage { margin-top: 0; }
@media (max-width: 1023px) {
  .kit-hero--split > .wrap { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 767px) {
  .kit-hero { padding-top: 56px; }
  .kit-hero-stage { margin-top: 40px; }
}

/* ---------------------------------------------------------------- screens: every product picture is one of these */
.kit-screen { position: relative; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--kit-line), var(--kit-shadow);
  overflow: hidden; transform: perspective(1400px) rotateX(calc(var(--rx, 0) * 1deg)) rotateY(calc(var(--ry, 0) * 1deg)) translateY(var(--ty, 0));
  transition: transform .5s var(--kit-ease), box-shadow .5s var(--kit-ease); text-align: left; }
.kit-screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: var(--glare, 0); transition: opacity .4s ease;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 0%), rgb(255 255 255 / 45%), transparent 70%); }
.kit-screen-bar { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--kit-line);
  font: 500 13px/1 var(--font-text); color: var(--ink-2); background: rgb(250 250 251 / 80%); }
.kit-screen-bar b { color: var(--ink); font-weight: 500; font-style: normal; }
.kit-screen-bar .kit-sample { margin-left: auto; }
.kit-sample { font: 500 11px/1 var(--mono); color: var(--ink-2); padding: 4px 8px; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--kit-line); background: #fff; }
.kit-phone { position: relative; width: 280px; aspect-ratio: 9 / 19; border-radius: 40px; padding: 8px; background: #111114; box-shadow: var(--kit-shadow); }
.kit-phone-screen { height: 100%; border-radius: 32px; overflow: hidden; background: #fff; position: relative; text-align: left; }
.kit-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 99px; font: 500 12px/1 var(--font-text);
  color: color-mix(in srgb, var(--kit-accent) 80%, var(--ink)); background: color-mix(in srgb, var(--kit-accent) 12%, #fff); white-space: nowrap; }
.kit-card { position: relative; border-radius: 20px; padding: 28px; background: var(--kit-glass); box-shadow: inset 0 0 0 1px var(--kit-line);
  -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2); }

/* ---------------------------------------------------------------- long scroll sequence: stage stays while the steps change */
.kit-pin { position: relative; height: calc(var(--steps, 4) * 90vh + 40vh); }
.kit-pin-stage { position: sticky; top: var(--kit-nav); height: calc(100vh - var(--kit-nav)); display: flex; align-items: center; overflow: clip; }
.kit-pin [data-kit-step] { transition: opacity .45s var(--kit-ease-soft), transform .6s var(--kit-ease), filter .45s var(--kit-ease-soft); }
@media (max-width: 767px), (prefers-reduced-motion: reduce) {
  /* phones and reduced motion read a sequence as a plain list: no pinned stage */
  .kit-pin { height: auto; }
  .kit-pin-stage { position: static; height: auto; display: block; overflow: visible; }
}

/* ---------------------------------------------------------------- hand-drawn lines */
.kit-scribble { position: relative; white-space: nowrap; }
.kit-scribble > svg { position: absolute; left: -2%; right: -2%; bottom: -.16em; width: 104%; height: .3em; overflow: visible; pointer-events: none; }
.kit-scribble path, .kit-draw path, .kit-draw line, .kit-draw polyline, .kit-draw circle, .kit-draw rect, .kit-draw ellipse {
  fill: none; stroke: var(--kit-accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.kit-draw .ink, .kit-draw .ink * { stroke: var(--ink); }
.kit-draw .soft, .kit-draw .soft * { stroke: var(--line-strong, #c9c9cf); }

/* ---------------------------------------------------------------- the top blur: rises as the page scrolls, like Home (H3) */
.kit-edge { position: fixed; top: var(--kit-nav); left: 0; right: 0; height: 96px; z-index: 40; pointer-events: none; }
.kit-edge i { position: absolute; inset: 0; }
@media (max-width: 767px) { .kit-edge { height: 64px; } }

/* ---------------------------------------------------------------- motion: armed by the script only */
@media (prefers-reduced-motion: no-preference) {
  .kit-armed .kit-word { display: inline-block; opacity: 0; filter: blur(8px); transform: translateY(.42em);
    transition: opacity .7s var(--kit-ease-soft), filter .7s var(--kit-ease-soft), transform .9s var(--kit-ease); transition-delay: calc(var(--w, 0) * 42ms); }
  .kit-armed.is-in .kit-word { opacity: 1; filter: none; transform: none; }

  .kit-settle.kit-armed > * { opacity: 0; transform: translateY(-22px) rotate(var(--tilt, -1.2deg));
    transition: opacity .55s var(--kit-ease-soft), transform 1s var(--kit-ease); transition-delay: calc(var(--i, 0) * 70ms); }
  .kit-settle.kit-armed.is-in > * { opacity: 1; transform: none; }

  .kit-rise.kit-armed { opacity: 0; transform: translateY(56px) scale(.975); transition: opacity .8s var(--kit-ease-soft), transform 1.2s var(--kit-ease); }
  .kit-rise.kit-armed.is-in { opacity: 1; transform: none; }

  .kit-fade.kit-armed { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--kit-ease-soft), transform .9s var(--kit-ease); transition-delay: calc(var(--d, 0) * 1ms); }
  .kit-fade.kit-armed.is-in { opacity: 1; transform: none; }

  /* the leaving block: words and pictures soften away upward as the visitor scrolls on */
  [data-kit-out] { opacity: calc(1 - var(--out, 0) * .85); filter: blur(calc(var(--out, 0) * 10px)); transform: translateY(calc(var(--out, 0) * -24px)); }

  /* the drawn line: pathLength is set to 1 by the script */
  .kit-draw.kit-armed [pathLength], .kit-scribble.kit-armed [pathLength] { stroke-dasharray: 1 1.02; stroke-dashoffset: 1.01; }   /* just past the line's end, so a round cap leaves no stray dot */
  .kit-draw.kit-armed.is-in [pathLength], .kit-scribble.kit-armed.is-in [pathLength] {
    animation: kit-draw var(--draw, 1.4s) cubic-bezier(.45, .05, .3, 1) forwards; animation-delay: calc(var(--dl, 0) * 1ms); }
  @keyframes kit-draw { to { stroke-dashoffset: 0; } }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .kit-screen[data-kit-tilt]:hover { --ty: -6px; --glare: 1; }
}
