/* ==========================================================================
   Owl Production — styles.css
   --------------------------------------------------------------------------
   Layout concept: a left-aligned 1200px column with one asymmetric hero
   (copy left, a live workflow diagram right). Sections are separated by
   space and hairlines; products are the only things that carry color.
   Neutral ink is the accent; blue / green / gold belong to LITE / Standard /
   Premium and only appear on product elements (set per element via --pc).
   ========================================================================== */

/* ---------- Fonts (self-hosted, subset: Latin + Hungarian, OFL licensed) -- */
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fragment Mono";
  src: url("fonts/fragment-mono.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* Metric-matched fallback so text doesn't jump when the web font arrives */
@font-face {
  font-family: "Instrument Sans Fallback";
  src: local("Arial"), local("Helvetica"), local("Liberation Sans");
  size-adjust: 102.5%;
  ascent-override: 94.64%;
  descent-override: 24.39%;
  line-gap-override: 0%;
}

/* ---------- Tokens: light (default) -------------------------------------- */
:root {
  /* color */
  --bg: #f5f6f8;
  --bg-raise: #ffffff;
  --bg-sunk: #eceef2;
  --line: rgba(20, 23, 33, 0.1);
  --line-strong: rgba(20, 23, 33, 0.17);
  --fg: #0f1116;
  --fg-2: #4b505d;
  --fg-3: #5c616e;
  --ink: #111318;
  --on-ink: #f7f8fa;
  --hover: rgba(20, 23, 33, 0.05);
  --grid: rgba(20, 23, 33, 0.055);
  --dot: rgba(20, 23, 33, 0.14);
  --spot: rgba(255, 255, 255, 0.95);
  --canvas: #fbfbfc;
  --node: #ffffff;
  --pulse: #111318;
  --pulse-soft: rgba(17, 19, 24, 0.16);
  --header-bg: rgba(245, 246, 248, 0.8);
  --shadow-sm: 0 1px 2px rgba(15, 17, 22, 0.05), 0 1px 1px rgba(15, 17, 22, 0.03);
  --shadow-md: 0 14px 30px -14px rgba(15, 17, 22, 0.2), 0 2px 6px -2px rgba(15, 17, 22, 0.06);
  --shadow-lg: 0 34px 70px -30px rgba(15, 17, 22, 0.32), 0 10px 24px -14px rgba(15, 17, 22, 0.12);
  --highlight: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  /* how product colors are adapted to this theme */
  --pc-mix: #000000;
  --pc-amount: 58%;
  --pc-soft-amount: 11%;
  --cover-ground: #ffffff;
  --cover-tint: 9%;
  --cover-fg: #0f1116;
  --cover-fg-2: rgba(15, 17, 22, 0.74);
  --cover-grid: rgba(20, 23, 33, 0.06);

  /* type */
  --font-sans: "Instrument Sans", "Instrument Sans Fallback", ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "Fragment Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono",
    monospace;
  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: 1.375rem;
  --step-3: clamp(1.875rem, 1.35rem + 2.1vw, 2.75rem);
  --step-4: clamp(2.5rem, 1.45rem + 4.4vw, 4.375rem);

  /* layout */
  --maxw: 1200px;
  --gutter: 16px;
  --header-h: 60px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  color-scheme: light;
}

/* ---------- Tokens: dark (the showcase) ----------------------------------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0d11;
    --bg-raise: #13151b;
    --bg-sunk: #1a1c24;
    --line: rgba(226, 231, 255, 0.08);
    --line-strong: rgba(226, 231, 255, 0.15);
    --fg: #edeef2;
    --fg-2: #a6a9b6;
    --fg-3: #8b8f9e;
    --ink: #edeef2;
    --on-ink: #0c0d11;
    --hover: rgba(226, 231, 255, 0.06);
    --grid: rgba(226, 231, 255, 0.05);
    --dot: rgba(226, 231, 255, 0.11);
    --spot: rgba(186, 196, 255, 0.075);
    --canvas: #101117;
    --node: #171920;
    --pulse: #ffffff;
    --pulse-soft: rgba(255, 255, 255, 0.22);
    --header-bg: rgba(12, 13, 17, 0.72);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 18px 40px -18px rgba(0, 0, 0, 0.75), 0 2px 8px -2px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 40px 90px -30px rgba(0, 0, 0, 0.85), 0 12px 30px -12px rgba(0, 0, 0, 0.5);
    --highlight: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    --pc-mix: #ffffff;
    --pc-amount: 82%;
    --pc-soft-amount: 15%;
    --cover-ground: #101117;
    --cover-tint: 14%;
    --cover-fg: #f3f4f7;
    --cover-fg-2: rgba(243, 244, 247, 0.76);
    --cover-grid: rgba(226, 231, 255, 0.06);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c0d11;
  --bg-raise: #13151b;
  --bg-sunk: #1a1c24;
  --line: rgba(226, 231, 255, 0.08);
  --line-strong: rgba(226, 231, 255, 0.15);
  --fg: #edeef2;
  --fg-2: #a6a9b6;
  --fg-3: #8b8f9e;
  --ink: #edeef2;
  --on-ink: #0c0d11;
  --hover: rgba(226, 231, 255, 0.06);
  --grid: rgba(226, 231, 255, 0.05);
  --dot: rgba(226, 231, 255, 0.11);
  --spot: rgba(186, 196, 255, 0.075);
  --canvas: #101117;
  --node: #171920;
  --pulse: #ffffff;
  --pulse-soft: rgba(255, 255, 255, 0.22);
  --header-bg: rgba(12, 13, 17, 0.72);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 18px 40px -18px rgba(0, 0, 0, 0.75), 0 2px 8px -2px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 40px 90px -30px rgba(0, 0, 0, 0.85), 0 12px 30px -12px rgba(0, 0, 0, 0.5);
  --highlight: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --pc-mix: #ffffff;
  --pc-amount: 82%;
  --pc-soft-amount: 15%;
  --cover-ground: #101117;
  --cover-tint: 14%;
  --cover-fg: #f3f4f7;
  --cover-fg-2: rgba(243, 244, 247, 0.76);
  --cover-grid: rgba(226, 231, 255, 0.06);
  color-scheme: dark;
}

/* ---------- Product color scope -------------------------------------------
   Any element with class "pc" and an inline --pc (the product's hex color)
   gets readable variants for the current theme. */
.pc,
.compare tr > :nth-child(n + 2) {
  --pc-text: color-mix(in oklab, var(--pc, #888) var(--pc-amount), var(--pc-mix));
  --pc-soft: color-mix(in oklab, var(--pc, #888) var(--pc-soft-amount), transparent);
  --pc-line: color-mix(in oklab, var(--pc, #888) 38%, transparent);
}
.compare tr > :nth-child(2) { --pc: var(--pc-1); }
.compare tr > :nth-child(3) { --pc: var(--pc-2); }
.compare tr > :nth-child(4) { --pc: var(--pc-3); }

/* ---------- Base ----------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 24px);
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: normal;
}
/* paints the phone's status-bar band when the page runs edge to edge */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--bg);
}
main {
  flex: 1 0 auto;
}
/* product pages are filled in by app.js: keep the footer below the first
   screen until then, so nothing visible jumps when the content arrives */
.js main[data-page="product"] {
  min-height: 100vh;
}
img,
svg {
  max-width: 100%;
}
img {
  display: block;
  height: auto;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3 {
  margin: 0;
  color: var(--fg);
  font-weight: 620;
  text-wrap: balance;
}
h1 {
  letter-spacing: -0.034em;
  line-height: 1.03;
}
h2 {
  font-size: var(--step-3);
  letter-spacing: -0.026em;
  line-height: 1.08;
}
h3 {
  font-size: var(--step-1);
  letter-spacing: -0.012em;
  line-height: 1.3;
}
p {
  margin: 0;
  text-wrap: pretty;
}
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-strong);
  transition: color 0.15s, text-decoration-color 0.15s;
}
a:hover {
  text-decoration-color: currentColor;
}
code {
  font-family: var(--font-mono);
  font-size: 0.84em;
  padding: 0.12em 0.42em;
  border-radius: 6px;
  background: var(--bg-sunk);
  border: 1px solid var(--line);
  color: var(--fg);
  overflow-wrap: anywhere;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}
::selection {
  background: color-mix(in oklab, var(--ink) 18%, transparent);
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: max(16px, env(safe-area-inset-left, 0px));
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--on-ink);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  top: calc(env(safe-area-inset-top, 0px) + 10px);
}

/* ---------- Layout --------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
@media (min-width: 640px) {
  :root {
    --gutter: 24px;
  }
}
@media (min-width: 1024px) {
  :root {
    --gutter: 32px;
  }
}
.section {
  padding-block: clamp(64px, 8vw, 104px);
}
.section--ruled {
  border-top: 1px solid var(--line);
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 40px;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.section-head > div {
  min-width: 0;
}
.lede {
  margin-top: 14px;
  max-width: 38rem;
  color: var(--fg-2);
  font-size: var(--step-1);
  line-height: 1.55;
}

/* ---------- Buttons -------------------------------------------------------- */
.btn {
  --btn-h: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--btn-h);
  padding: 0 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font: 600 15px/1.2 var(--font-sans);
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease),
    color 0.18s var(--ease), transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--ink);
  color: var(--on-ink);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: color-mix(in oklab, var(--ink) 86%, var(--bg));
}
.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  background: var(--hover);
  border-color: color-mix(in oklab, var(--fg) 30%, transparent);
}
.btn-sm {
  --btn-h: 36px;
  padding: 0 14px;
  font-size: 14px;
}
.btn-lg {
  --btn-h: 50px;
  padding: 0 22px;
  font-size: 16px;
}
.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}

/* ---------- Badge ---------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid var(--pc-line);
  background: var(--pc-soft);
  color: var(--pc-text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.005em;
  white-space: nowrap;
}

/* ---------- Header --------------------------------------------------------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
}
/* At the very top the header is see-through, so the hero's grid runs up to
   the edge of the screen. app.js adds .at-top; without it the header is solid. */
.js .site-header.at-top {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--fg);
  font-size: 17px;
  font-weight: 620;
  letter-spacing: -0.016em;
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark {
  width: 28px;
  height: 28px;
  flex: none;
}
.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav a {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--fg-2);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.nav a:hover {
  color: var(--fg);
  background: var(--hover);
}
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-left: 6px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--fg-2);
  cursor: pointer;
  transition: color 0.15s, background-color 0.15s, border-color 0.15s;
}
html:not(.js) .theme-toggle {
  display: none;
}
.theme-toggle:hover {
  color: var(--fg);
  background: var(--hover);
  border-color: var(--line-strong);
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
}
.icon-sun {
  display: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun {
    display: block;
  }
  :root:not([data-theme="light"]) .icon-moon {
    display: none;
  }
}
:root[data-theme="dark"] .icon-sun {
  display: block;
}
:root[data-theme="dark"] .icon-moon {
  display: none;
}
@media (max-width: 400px) {
  .brand {
    font-size: 16px;
    gap: 8px;
  }
  .nav a {
    padding: 8px 9px;
  }
  .theme-toggle {
    margin-left: 4px;
  }
}
@media (max-width: 349px) {
  .brand-name {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
}

/* ---------- Hero ----------------------------------------------------------- */
.hero {
  position: relative;
  overflow-x: clip;
  margin-top: calc(-1 * var(--header-h));
  padding-block: calc(var(--header-h) + clamp(40px, 7vw, 96px)) clamp(16px, 3vw, 40px);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 70% 35%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 65% at 70% 35%, #000 25%, transparent 78%);
  pointer-events: none;
}
@media (max-width: 639px) {
  /* keep the grid in the top-right corner, away from the headline */
  .hero::before {
    -webkit-mask-image: radial-gradient(ellipse 100% 40% at 100% 0%, #000 20%, transparent 80%);
    mask-image: radial-gradient(ellipse 100% 40% at 100% 0%, #000 20%, transparent 80%);
  }
}
.hero::after {
  content: "";
  position: absolute;
  left: 30%;
  right: -10%;
  top: -30%;
  height: 90%;
  background: radial-gradient(closest-side, var(--spot), transparent);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 56px;
  align-items: center;
}
.hero-grid > * {
  min-width: 0;
}
@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6.2fr);
    gap: 48px;
  }
}
.hero h1 {
  font-size: var(--step-4);
  max-width: 11ch;
}
.hero-lede {
  margin-top: 24px;
  max-width: 33rem;
  color: var(--fg-2);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.55;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
@media (max-width: 419px) {
  .hero-actions .btn {
    flex: 1 1 100%;
  }
}
.hero-meta {
  display: grid;
  gap: 8px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: var(--fg-3);
  font-size: 14px;
}
.hero-meta li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.hero-meta svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 3px;
  color: var(--fg-2);
}
.hero-meta code {
  font-size: 13px;
}

/* ---------- Hero workflow diagram ----------------------------------------- */
.flow {
  position: relative;
  margin: 0;
}
/* One frame: title bar, then the diagram with the example message laid over
   its empty lower-left corner (same grid cell). If the message is taller than
   the space left for it, the frame grows instead of the card spilling out. */
.flow-canvas {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  container-type: inline-size;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background: var(--canvas);
  box-shadow: var(--shadow-lg), var(--highlight);
  overflow: hidden;
}
.flow-canvas::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--dot) 1px, transparent 1.3px);
  background-size: 20px 20px;
  background-position: 10px 10px;
  pointer-events: none;
}
.flow-bar {
  position: relative;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in oklab, var(--canvas) 70%, var(--bg-raise));
  font-size: 13px;
  color: var(--fg-2);
}
.flow-bar-title {
  font-weight: 600;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.flow-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-3);
  white-space: nowrap;
}
.flow-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--fg-2);
  box-shadow: 0 0 0 0 var(--pulse-soft);
  animation: statusPing 2.4s var(--ease) infinite;
}
.flow-svg {
  position: relative;
  z-index: 1;
  grid-area: 2 / 1;
  align-self: start;
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}
.flow-svg--tall {
  display: none;
}
@media (max-width: 639px) {
  .flow-svg--wide {
    display: none;
  }
  .flow-svg--tall {
    display: block;
  }
}
.flow-svg .node-box {
  fill: var(--node);
  stroke: var(--line-strong);
  stroke-width: 1;
}
.flow-svg .node-ring {
  fill: none;
  stroke: var(--fg);
  stroke-width: 1.5;
  stroke-opacity: 0;
}
.flow-svg .node-ico-bg {
  fill: var(--bg-sunk);
  stroke: var(--line);
}
.flow-svg .node-ico {
  fill: none;
  stroke: var(--fg-2);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.flow-svg .node-title {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  fill: var(--fg);
}
.flow-svg .node-sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  fill: var(--fg-3);
}
.flow-svg .wire {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1.5;
}
.flow-svg .handle {
  fill: var(--node);
  stroke: var(--line-strong);
  stroke-width: 1.25;
}
.flow-svg .pulse,
.flow-svg .pulse-glow {
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 14 300;
  stroke-dashoffset: 14;
  opacity: 0;
}
.flow-svg .pulse {
  stroke: var(--pulse);
  stroke-width: 2.25;
}
.flow-svg .pulse-glow {
  stroke: var(--pulse-soft);
  stroke-width: 8;
}
.flow-svg .chip-bg {
  fill: var(--ink);
}
.flow-svg .chip-text {
  font-family: var(--font-mono);
  font-size: 10.5px;
  fill: var(--on-ink);
}
.flow-svg .chip {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

/* the 6-second loop: Stripe → n8n → (Sheets + Telegram) */
.flow-svg .pulse--a,
.flow-svg .pulse-glow--a {
  animation: wireA 6s linear infinite;
}
.flow-svg .pulse--b,
.flow-svg .pulse-glow--b {
  animation: wireB 6s linear infinite;
}
.flow-svg .pulse--c,
.flow-svg .pulse-glow--c {
  animation: wireC 6s linear infinite;
}
.flow-svg .ring--stripe {
  animation: ringStripe 6s var(--ease) infinite;
}
.flow-svg .ring--n8n {
  animation: ringHub 6s var(--ease) infinite;
}
.flow-svg .ring--out {
  animation: ringOut 6s var(--ease) infinite;
}
.flow-svg .chip {
  animation: chipIn 6s var(--ease) infinite;
}
@keyframes wireA {
  0% { stroke-dashoffset: 14; opacity: 0; }
  1% { opacity: 1; }
  16% { stroke-dashoffset: -100; opacity: 1; }
  17%, 100% { stroke-dashoffset: -100; opacity: 0; }
}
@keyframes wireB {
  0%, 21% { stroke-dashoffset: 14; opacity: 0; }
  22% { opacity: 1; }
  38% { stroke-dashoffset: -100; opacity: 1; }
  39%, 100% { stroke-dashoffset: -100; opacity: 0; }
}
@keyframes wireC {
  0%, 41% { stroke-dashoffset: 14; opacity: 0; }
  42% { opacity: 1; }
  48% { stroke-dashoffset: -100; opacity: 1; }
  49%, 100% { stroke-dashoffset: -100; opacity: 0; }
}
@keyframes ringStripe {
  0% { stroke-opacity: 0.5; }
  12%, 100% { stroke-opacity: 0; }
}
@keyframes ringHub {
  0%, 14% { stroke-opacity: 0; }
  18% { stroke-opacity: 0.55; }
  34%, 100% { stroke-opacity: 0; }
}
@keyframes ringOut {
  0%, 36% { stroke-opacity: 0; }
  40% { stroke-opacity: 0.55; }
  58%, 100% { stroke-opacity: 0; }
}
@keyframes chipIn {
  0%, 37% { opacity: 0; transform: translateY(4px) scale(0.96); }
  41% { opacity: 1; transform: none; }
  66% { opacity: 1; transform: none; }
  74%, 100% { opacity: 0; transform: translateY(-3px); }
}
@keyframes statusPing {
  0% { box-shadow: 0 0 0 0 var(--pulse-soft); }
  70%, 100% { box-shadow: 0 0 0 7px transparent; }
}

/* Example Telegram message, the end of the flow. Wide layout: under Stripe and
   n8n, from Stripe's left edge to n8n's right edge (16..390 of the 640-unit
   viewBox), top at y=222; the connector from Telegram ends on its right edge.
   Its type scales with the diagram (cqw), kept between 14px and 20px. */
.tg {
  position: relative;
  grid-area: 2 / 1;
  align-self: start;
  justify-self: start;
  width: 58.4375%;
  margin: 34.6875% 0 5% 2.5%;
  padding: 1em;
  border-radius: 1.1429em;
  border: 1px solid var(--line-strong);
  background: var(--bg-raise);
  box-shadow: var(--shadow-md), var(--highlight);
  font-size: 14px;
  font-size: clamp(14px, 2.1875cqw, 20px);
  /* fades in when the pulse reaches it, out again before the next loop */
  animation: tgIn 6s var(--ease) 2.88s infinite backwards;
}
.tg-head {
  display: flex;
  align-items: center;
  gap: 0.7143em;
  font-size: 0.9286em;
  line-height: 1.25;
}
.tg-avatar {
  display: grid;
  place-items: center;
  width: 2.4615em;
  height: 2.4615em;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-sunk);
  color: var(--fg-2);
  font-size: 0.9231em;
  font-weight: 650;
}
.tg-name {
  display: block;
  font-weight: 600;
  color: var(--fg);
}
.tg-app {
  display: block;
  color: var(--fg-3);
  font-size: 0.9231em;
}
.tg-time {
  margin-left: auto;
  color: var(--fg-3);
  font-size: 0.9231em;
}
.tg-bubble {
  margin-top: 0.8571em;
  padding: 0.7857em 0.9286em 0.8571em;
  border-radius: 1em 1em 1em 0.2857em;
  background: var(--bg-sunk);
  line-height: 1.5;
}
.tg-title {
  font-weight: 600;
}
.tg-line {
  font-variant-numeric: tabular-nums;
}
.tg-amount {
  font-weight: 600;
}
.tg-who {
  color: var(--fg-2);
  font-size: 0.9286em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@keyframes tgIn {
  0% { opacity: 0; transform: translateY(8px) scale(0.985); }
  8% { opacity: 1; transform: none; }
  91% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(-4px); }
}
.flow.is-paused,
.flow.is-paused * {
  animation-play-state: paused !important;
}
/* Phones: the message gets its own row under the tall diagram, lined up with
   the nodes. Percentages are of the diagram width (viewBox 360 wide):
   10/360 = side inset of the nodes, 4/360 = overlap under the connector's end. */
@media (max-width: 639px) {
  .tg {
    grid-area: 3 / 1;
    justify-self: stretch;
    width: auto;
    margin: -1.1111% 2.7778% 4.4444%;
    font-size: 14px;
    box-shadow: var(--shadow-sm), var(--highlight);
  }
}

/* ---------- Details that usually go wrong --------------------------------- */
/* One panel split by hairlines: the 1px gaps show the panel's line color. */
.details {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--line);
  box-shadow: var(--shadow-sm);
}
@media (min-width: 640px) {
  .details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1100px) {
  .details {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.detail {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 24px;
  background: var(--bg-raise);
}
.detail-case {
  align-self: flex-start;
  margin-bottom: 6px;
  padding: 4px 9px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.45;
}
.detail h3 {
  font-size: 18px;
}
/* side by side, the four parts of each point line up across the row */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 640px) {
    .detail {
      display: grid;
      grid-row: span 4;
      grid-template-rows: subgrid;
      row-gap: 10px;
    }
    .detail-case {
      justify-self: start;
    }
    .detail-plans {
      align-self: end;
    }
  }
}
.detail-text {
  color: var(--fg-2);
  font-size: 15px;
  line-height: 1.55;
}
.detail-plans {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: auto;
  padding-top: 14px;
  color: var(--fg-3);
  font-size: 13px;
}
.pm {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.pm::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--fg-3);
}
.pm.is-on {
  color: var(--fg);
}
.pm.is-on::before {
  background: color-mix(in oklab, var(--pc) var(--pc-amount), var(--pc-mix));
  box-shadow: none;
}
@media (forced-colors: active) {
  .pm.is-on::before {
    forced-color-adjust: none;
    background: CanvasText;
  }
  .pm:not(.is-on)::before {
    box-shadow: none;
    border: 1.5px solid GrayText;
  }
}
.pm--1 {
  --pc: var(--pc-1);
}
.pm--2 {
  --pc: var(--pc-2);
}
.pm--3 {
  --pc: var(--pc-3);
}

/* ---------- Product catalog ----------------------------------------------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--fg-2);
  font: 500 14px/1 var(--font-sans);
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.chip:hover {
  color: var(--fg);
  background: var(--hover);
}
.chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--on-ink);
}
.chip-count {
  font-family: var(--font-mono);
  font-size: 12px;
  opacity: 0.72;
}
.one-cat .card-cat {
  display: none;
}
.product-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
}
@media (min-width: 960px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
  }
}
.product-grid > li {
  min-width: 0;
  display: flex;
}
.catalog-msg {
  padding: 28px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--fg-2);
}

/* product card */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg-raise);
  box-shadow: var(--shadow-sm), var(--highlight);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md), var(--highlight);
  border-color: var(--line-strong);
}
.card-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  max-width: 100%;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 20px 20px 18px;
}
.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  min-height: 22px;
  color: var(--fg-3);
  font-size: 13px;
}
.card-title {
  font-size: 19px;
  line-height: 1.28;
  letter-spacing: -0.014em;
}
.card-title a {
  text-decoration: none;
}
.card-title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}
.card-title a:focus-visible {
  outline: none;
}
.card-title a:focus-visible::after {
  outline: 2px solid var(--ink);
  outline-offset: -2px;
  border-radius: var(--radius-lg);
}
.card-desc {
  color: var(--fg-2);
  font-size: 15px;
  line-height: 1.55;
}
.card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin-top: auto;
  padding-top: 16px;
}
.card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-actions .btn {
  position: relative;
  z-index: 2;
}
.card-actions .btn-details {
  z-index: 0;
  pointer-events: none;
}
.card:hover .btn-details {
  background: var(--hover);
}
.price {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.price-amount {
  font-size: 24px;
  font-weight: 640;
  letter-spacing: -0.024em;
  font-variant-numeric: tabular-nums;
}
.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
}
/* launch price: the later regular price, in small muted type */
.price-then {
  color: var(--fg-3);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}
.price-cut {
  align-self: center;
}
.plan-card-price .price-then {
  margin-left: 2px;
  font-size: 14px;
}
.price-note {
  margin-top: 3px;
  min-height: 1.15em;
  color: var(--fg-3);
  font-size: 13px;
}
@media (max-width: 699px) {
  .card-cover {
    aspect-ratio: 2 / 1;
  }
  .card-actions {
    width: 100%;
  }
  .card-actions .btn {
    flex: 1;
  }
}
@media (min-width: 700px) and (max-width: 959px) {
  .card {
    flex-direction: row;
  }
  .card-cover {
    width: 42%;
    flex: none;
    aspect-ratio: auto;
    min-height: 100%;
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }
  /* the diagram fills the cover here; the title beside it names the product */
  .card .cover-name {
    display: none;
  }
  .card-body {
    padding: 22px 24px;
  }
}

/* generated cover (when a product has no image) */
.cover-ph {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(120% 110% at 0% 0%, color-mix(in oklab, var(--pc) 30%, transparent) 0%, transparent 58%),
    radial-gradient(90% 80% at 100% 100%, color-mix(in oklab, var(--pc) 16%, transparent) 0%, transparent 62%),
    color-mix(in oklab, var(--pc) var(--cover-tint), var(--cover-ground));
}
.cover-ph::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--cover-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--cover-grid) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(115deg, transparent 20%, #000 75%);
  mask-image: linear-gradient(115deg, transparent 20%, #000 75%);
}
.cover-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.cover-art .a-node {
  fill: color-mix(in oklab, var(--pc) 12%, var(--cover-ground));
  stroke: color-mix(in oklab, var(--pc) 55%, transparent);
  stroke-width: 1.25;
}
.cover-art .a-wire {
  fill: none;
  stroke: color-mix(in oklab, var(--pc) 50%, transparent);
  stroke-width: 1.5;
}
.cover-art .a-dot {
  fill: var(--pc-text);
}
.cover-art .a-bar {
  fill: color-mix(in oklab, var(--pc) 45%, transparent);
}
.cover-art .a-label {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  fill: var(--cover-fg);
}
.cover-art .a-hub {
  fill: color-mix(in oklab, var(--pc) 24%, var(--cover-ground));
}
.cover-art .a-tag {
  fill: color-mix(in oklab, var(--pc) 14%, var(--cover-ground));
  stroke: color-mix(in oklab, var(--pc) 40%, transparent);
  stroke-width: 1;
}
.cover-art .a-tag-text {
  font-family: var(--font-mono);
  font-size: 10px;
  fill: var(--cover-fg-2);
}
.cover-kind {
  position: absolute;
  top: 16px;
  left: 18px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--cover-fg-2);
}
.cover-name {
  position: absolute;
  left: 18px;
  bottom: 14px;
  color: var(--cover-fg);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 640;
  letter-spacing: -0.024em;
  line-height: 1;
}

/* ---------- Compare table -------------------------------------------------- */
.compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-size: 15px;
}
.compare .col-feature {
  width: 46%;
}
.compare thead th {
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + var(--header-h));
  z-index: 3;
  padding: 18px 10px 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--line-strong);
  text-align: center;
  vertical-align: top;
  font-weight: 400;
}
.compare thead td {
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + var(--header-h));
  z-index: 3;
  background: var(--bg);
  border-bottom: 1px solid var(--line-strong);
}
.plan-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.plan-head::before {
  content: "";
  width: 26px;
  height: 3px;
  margin-bottom: 10px;
  border-radius: 2px;
  background: var(--pc);
}
.plan-name {
  font-weight: 620;
  font-size: 15px;
  color: var(--fg);
  text-decoration: none;
}
a.plan-name:hover {
  text-decoration: underline;
}
.plan-price {
  font-size: 26px;
  font-weight: 640;
  letter-spacing: -0.024em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  color: var(--fg);
  white-space: nowrap;
}
.plan-note {
  min-height: 1.3em;
  color: var(--fg-3);
  font-size: 12.5px;
  line-height: 1.3;
}
.compare tbody th {
  padding: 14px 16px 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--fg-2);
  font-weight: 400;
  text-align: left;
  vertical-align: top;
  text-wrap: pretty;
}
.compare tbody td {
  padding: 14px 10px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  vertical-align: top;
  color: var(--fg-2);
  font-size: 14px;
}
.compare .group th {
  padding: 30px 0 10px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--fg);
  font-size: 14px;
  font-weight: 620;
}
.compare tbody:first-of-type .group th {
  padding-top: 22px;
}
.yes,
.no {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  vertical-align: middle;
}
.yes {
  background: var(--pc-soft);
  color: var(--pc-text);
}
.no {
  color: var(--fg-3);
}
.yes svg,
.no svg {
  width: 14px;
  height: 14px;
}
.compare tfoot td {
  padding: 22px 8px 0;
  text-align: center;
  vertical-align: top;
}
.compare tfoot .btn {
  width: 100%;
  max-width: 168px;
}
.lbl-short {
  display: none;
}
.compare-note {
  display: flex;
  gap: 10px;
  max-width: 46rem;
  margin-top: 36px;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-raise);
  color: var(--fg-2);
  font-size: 14.5px;
}
.compare-note svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 2px;
  color: var(--fg);
}
.compare-note strong {
  color: var(--fg);
  font-weight: 600;
}
@media (max-width: 359px) {
  .plan-name {
    font-size: 11px !important;
    letter-spacing: -0.01em;
  }
  .plan-price {
    font-size: 17px !important;
  }
}
@media (max-width: 639px) {
  .compare {
    font-size: 13.5px;
  }
  .compare .col-feature {
    width: 44%;
  }
  .compare thead th {
    padding: 12px 4px 10px;
  }
  .plan-head::before {
    margin-bottom: 8px;
  }
  .plan-name {
    font-size: 12.5px;
  }
  .plan-price {
    font-size: 19px;
  }
  .plan-note {
    font-size: 10.5px;
  }
  .compare tbody th {
    padding: 12px 8px 12px 0;
  }
  .compare tbody td {
    padding: 12px 4px;
    font-size: 12px;
    line-height: 1.35;
  }
  .compare tfoot td {
    padding: 18px 3px 0;
  }
  .compare tfoot .btn {
    --btn-h: 44px;
    padding: 0 6px;
  }
  /* long event names: plain mono text instead of a box that breaks apart */
  .compare code {
    padding: 0;
    border: 0;
    background: none;
    font-size: 11.5px;
  }
  .lbl-full {
    display: none;
  }
  .lbl-short {
    display: inline;
  }
}

/* ---------- How it works --------------------------------------------------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 36px;
}
.step {
  position: relative;
  padding-left: 56px;
}
.step-n {
  position: absolute;
  left: 0;
  top: -3px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--bg-raise);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg);
  box-shadow: var(--shadow-sm);
}
.step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 38px;
  bottom: -32px;
  width: 1px;
  background: var(--line-strong);
}
.step h3 {
  font-size: 20px;
}
.step p {
  margin-top: 8px;
  max-width: 30rem;
  color: var(--fg-2);
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg-raise);
  color: var(--fg-2);
  font-size: 13.5px;
  line-height: 1.4;
}
.tag--mono {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--fg);
}
@media (min-width: 880px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
  }
  .step {
    padding-left: 0;
    padding-top: 58px;
  }
  .step-n {
    top: 0;
  }
  .step:not(:last-child)::before {
    left: 46px;
    right: -28px;
    top: 17px;
    bottom: auto;
    width: auto;
    height: 1px;
    background: linear-gradient(90deg, var(--line-strong), var(--line));
  }
}

/* ---------- Tested environment -------------------------------------------- */
.split {
  display: grid;
  gap: 28px;
}
.split > * {
  min-width: 0;
}
@media (min-width: 960px) {
  .split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 64px;
    align-items: start;
  }
}
.env {
  margin: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg-raise);
  box-shadow: var(--shadow-sm), var(--highlight);
  overflow: hidden;
}
.env-row {
  display: grid;
  gap: 12px;
  padding: 20px;
}
.env-row + .env-row {
  border-top: 1px solid var(--line);
}
@media (min-width: 640px) {
  .env-row {
    grid-template-columns: 160px minmax(0, 1fr);
    align-items: center;
    padding: 22px 24px;
  }
}
.env dt {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  font-weight: 600;
}
.env dd {
  margin: 0;
}
.env .tags {
  margin: 0;
}
.env-ico {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 50%;
}
.env-ico svg {
  width: 14px;
  height: 14px;
}
.env-row--ok .env-ico {
  background: var(--ink);
  color: var(--on-ink);
}
.env-row--no .env-ico {
  border: 1px solid var(--line-strong);
  color: var(--fg-3);
}
.env-row--ok .tag {
  background: var(--bg);
  color: var(--fg);
}
.env-row--no .tag {
  border-style: dashed;
  border-color: var(--line-strong);
  background: transparent;
  color: var(--fg-2);
}
.env-foot {
  margin-top: 16px;
  color: var(--fg-3);
  font-size: 14px;
}

/* ---------- FAQ ------------------------------------------------------------ */
@media (min-width: 960px) {
  .split--sticky > :first-child {
    position: sticky;
    top: calc(env(safe-area-inset-top, 0px) + var(--header-h) + 32px);
  }
}
.faq {
  border-top: 1px solid var(--line-strong);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  list-style: none;
  cursor: pointer;
  color: var(--fg);
  font-size: 17px;
  font-weight: 560;
  line-height: 1.4;
  border-radius: 4px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary:hover .faq-ico {
  color: var(--fg);
  border-color: var(--line-strong);
}
.faq-ico {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--fg-3);
  transition: transform 0.3s var(--ease), color 0.15s, border-color 0.15s;
}
.faq-ico svg {
  width: 14px;
  height: 14px;
}
.faq details[open] .faq-ico {
  transform: rotate(45deg);
  color: var(--fg);
}
.faq-a {
  padding: 0 48px 22px 0;
  color: var(--fg-2);
}
.faq-a p + p {
  margin-top: 10px;
}
@supports (interpolate-size: allow-keywords) {
  .faq {
    interpolate-size: allow-keywords;
  }
  .faq details::details-content {
    block-size: 0;
    overflow: clip;
    transition: block-size 0.3s var(--ease), content-visibility 0.3s allow-discrete;
  }
  .faq details[open]::details-content {
    block-size: auto;
  }
}

/* ---------- Footer --------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 48px 40px;
  color: var(--fg-2);
  font-size: 14px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 28px 48px;
}
.footer-brand p {
  margin-top: 12px;
  max-width: 24rem;
  color: var(--fg-3);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-nav a {
  color: var(--fg-2);
  text-decoration: none;
}
@media (max-width: 639px) {
  .footer-top > nav {
    width: 100%;
  }
  .footer-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 24px;
  }
}
.footer-nav a:hover {
  color: var(--fg);
}
.imprint {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--fg-3);
  font-size: 13px;
  line-height: 1.7;
  font-style: normal;
}
.imprint-title {
  margin: 0 0 6px;
  color: var(--fg-2);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
}
.imprint address {
  font-style: normal;
}
.imprint p {
  margin: 0;
}
.imprint a {
  color: var(--fg-2);
}
.copyright {
  margin-top: 14px;
  color: var(--fg-3);
  font-size: 13px;
}

/* ---------- Product page --------------------------------------------------- */
.pp-hero {
  position: relative;
  padding-block: 28px clamp(48px, 7vw, 88px);
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  color: var(--fg-3);
  font-size: 14px;
}
.breadcrumb a {
  color: var(--fg-2);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--fg);
}
.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--line-strong);
}
.pp-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}
.pp-grid > * {
  min-width: 0;
}
@media (min-width: 900px) {
  .pp-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 56px;
  }
}
.pp-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  max-width: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.pp-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* phones and tablets: name, price and buy button first, a wider cover after */
@media (max-width: 899px) {
  .pp-cover {
    order: 2;
    aspect-ratio: 2 / 1;
  }
}
.pp-cover .cover-name {
  left: 24px;
  bottom: 20px;
  font-size: clamp(28px, 4vw, 40px);
}
.pp-cover .cover-kind {
  top: 20px;
  left: 24px;
  font-size: 12.5px;
}
@media (max-width: 340px) {
  .pp-cover .cover-name {
    font-size: clamp(22px, 8vw, 40px);
  }
}
.pp-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  color: var(--fg-3);
  font-size: 14px;
}
.pp-version {
  font-family: var(--font-mono);
  font-size: 12.5px;
}
.pp-version::before {
  content: "·";
  content: "·" / "";
  margin-right: 12px;
  font-family: var(--font-sans);
  color: var(--line-strong);
}
.pp-title {
  margin-top: 16px;
  font-size: clamp(2rem, 1.35rem + 2.6vw, 3.25rem);
  letter-spacing: -0.032em;
  line-height: 1.05;
}
.pp-short {
  margin-top: 18px;
  max-width: 34rem;
  color: var(--fg-2);
  font-size: var(--step-1);
  line-height: 1.55;
}
.pp-buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 30px;
}
.pp-buy .price-amount {
  font-size: 40px;
  letter-spacing: -0.03em;
}
.pp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.pp-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 18px;
  color: var(--fg-3);
  font-size: 13.5px;
}
.pp-note a {
  color: var(--fg-2);
}
.pp-note-item {
  display: inline-flex;
  align-items: flex-start;
  gap: 7px;
}
.pp-note-item svg {
  width: 15px;
  height: 15px;
  flex: none;
  margin-top: 2px;
  color: var(--fg-2);
}
.pp-note code {
  white-space: nowrap;
  overflow-wrap: normal;
}
.pp-body {
  padding-bottom: clamp(56px, 8vw, 96px);
}
.pp-section {
  display: grid;
  gap: 18px 48px;
  padding-block: 40px;
  border-top: 1px solid var(--line);
}
.pp-section > * {
  min-width: 0;
}
@media (min-width: 900px) {
  .pp-section {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    padding-block: 48px;
  }
}
.pp-section h2 {
  font-size: 22px;
  letter-spacing: -0.016em;
  line-height: 1.25;
}
.pp-prose p {
  max-width: 40rem;
  color: var(--fg-2);
  font-size: 17px;
}
.pp-prose p + p {
  margin-top: 14px;
}
@media (min-width: 640px) {
  .pp-prose code {
    white-space: nowrap;
  }
}
/* the next section's hairline already closes the last question */
.pp-section .faq details:last-child {
  border-bottom: 0;
}
.list {
  display: grid;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.list li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  color: var(--fg);
}
.list-ico {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
}
.list-ico svg {
  width: 14px;
  height: 14px;
}
.list--check .list-ico {
  background: var(--pc-soft);
  color: var(--pc-text);
}
.list--files .list-ico {
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--bg-raise);
  color: var(--fg-2);
}
.list--req .list-ico {
  border: 1px solid var(--line-strong);
  color: var(--fg-2);
}
.list--req .list-ico svg {
  width: 12px;
  height: 12px;
}
.notice {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--pc-line);
  background: var(--pc-soft);
  color: var(--fg);
  font-size: 15px;
}
.notice svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 3px;
  color: var(--pc-text);
}
.steps-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: setup;
}
.steps-list li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  counter-increment: setup;
  color: var(--fg);
}
.steps-list li::before {
  content: counter(setup);
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--bg-raise);
  color: var(--fg-2);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.setup-note {
  margin-top: 18px;
  max-width: 40rem;
  color: var(--fg-2);
  font-size: 15px;
}
.plans {
  display: grid;
  gap: 16px;
}
@media (min-width: 640px) {
  .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-raise);
  box-shadow: var(--shadow-sm), var(--highlight);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
}
.plan-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), var(--highlight);
  border-color: var(--line-strong);
}
.plan-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.plan-card-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 620;
}
.plan-card-name::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--pc);
}
.plan-card a {
  text-decoration: none;
}
.plan-card a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.plan-card a:focus-visible {
  outline: none;
}
.plan-card a:focus-visible::after {
  outline: 2px solid var(--ink);
  outline-offset: -2px;
}
.plan-card-price {
  font-weight: 640;
  font-variant-numeric: tabular-nums;
}
.plan-card p {
  color: var(--fg-2);
  font-size: 14.5px;
}
.plans-more {
  margin-top: 18px;
  font-size: 15px;
}
.pp-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  margin-top: 16px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: 20px;
  border: 1px solid var(--line);
  background: radial-gradient(70% 160% at 100% 0%, var(--pc-soft), transparent 70%), var(--bg-raise);
  box-shadow: var(--shadow-sm), var(--highlight);
}
.pp-cta h2 {
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem);
  letter-spacing: -0.022em;
}
.pp-cta-sub {
  margin-top: 6px;
  color: var(--fg-2);
}
.pp-cta-buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
}
.pp-cta .pp-note {
  width: 100%;
  margin-top: 0;
  justify-content: flex-end;
}
@media (max-width: 639px) {
  .pp-cta .pp-note {
    justify-content: flex-start;
  }
}

/* ---------- Sticky buy bar (product pages, see app.js) -------------------- */
.buybar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  border-top: 1px solid var(--line-strong);
  background: color-mix(in oklab, var(--bg-raise) 94%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 -16px 32px -24px rgba(15, 17, 22, 0.35);
  transform: translateY(105%);
  visibility: hidden;
  transition: transform 0.32s var(--ease), visibility 0s linear 0.32s;
}
.buybar.is-on {
  transform: none;
  visibility: visible;
  transition: transform 0.32s var(--ease), visibility 0s;
}
.buybar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding-block: 10px;
}
.buybar-info {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 14px;
  min-width: 0;
  line-height: 1.25;
}
.buybar-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--fg);
  font-weight: 620;
  letter-spacing: -0.01em;
}
.buybar-name::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--pc);
}
.buybar-price {
  color: var(--fg);
  font-weight: 640;
  font-variant-numeric: tabular-nums;
}
.buybar-price .price-then {
  margin-left: 2px;
  font-size: 14px;
}
.buybar .btn {
  flex: none;
}
@media (max-width: 639px) {
  .buybar-info {
    flex-direction: column;
    align-items: flex-start;
  }
  .buybar-name {
    font-size: 14px;
  }
  .buybar .btn {
    --btn-h: 44px;
    padding: 0 20px;
  }
}

/* keyboard focus never ends up hidden behind the buy bar */
html:has(.buybar) {
  scroll-padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
}
/* phones held sideways: no room for a bar */
@media (max-height: 480px) {
  .buybar {
    display: none;
  }
}

/* "Copy" next to the discount code */
.copy-code {
  display: inline-flex;
  align-items: center;
  height: 24px;
  margin-left: 4px;
  padding: 0 9px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--fg-2);
  font: 500 12.5px/1 var(--font-sans);
  vertical-align: middle;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.copy-code:hover {
  background: var(--hover);
  color: var(--fg);
}

/* Product page fallback (in the HTML for search engines and no-JS visitors).
   With JS it is replaced at once; if app.js never runs, it shows after 3 s. */
.pp-fallback .pp-short {
  margin-top: 18px;
}
.pp-fallback .hero-actions {
  margin-top: 28px;
}
.pp-fallback-note {
  margin-top: 20px;
  color: var(--fg-3);
  font-size: 14px;
}
.js .pp-fallback {
  visibility: hidden;
  animation: ppFallback 0s linear 3s forwards;
}
.js .pp-fallback.is-shown {
  visibility: visible;
  animation: none;
}
@keyframes ppFallback {
  to {
    visibility: visible;
  }
}

/* ---------- Maker note and closing call to action (home) ------------------ */
.maker {
  max-width: 40rem;
}
.maker p {
  color: var(--fg-2);
  font-size: var(--step-1);
  line-height: 1.6;
}
.maker p + p {
  margin-top: 14px;
}
.maker-sign {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px !important;
  color: var(--fg) !important;
  font-size: 15px !important;
  font-weight: 600;
}
.maker-sign .brand-mark {
  width: 32px;
  height: 32px;
  padding: 5px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--bg-raise);
}
.maker-sign > span {
  display: block;
  line-height: 1.35;
}
.maker-sign > span > span {
  display: block;
  color: var(--fg-3);
  font-size: 13.5px;
  font-weight: 400;
}
.band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px 40px;
  padding: clamp(28px, 5vw, 56px);
  border-radius: 20px;
  border: 1px solid var(--line);
  background:
    radial-gradient(60% 140% at 100% 0%, var(--spot), transparent 70%),
    var(--bg-raise);
  box-shadow: var(--shadow-sm), var(--highlight);
}
.band h2 {
  max-width: 18ch;
}
.band .lede {
  max-width: 34rem;
}
.band .hero-actions {
  margin-top: 0;
}

/* ---------- Legal & simple pages ------------------------------------------ */
.page {
  padding-block: clamp(40px, 6vw, 72px) clamp(64px, 9vw, 112px);
}
.prose {
  max-width: 44rem;
}
.prose h1 {
  font-size: clamp(2.125rem, 1.6rem + 2vw, 3rem);
}
.prose .updated {
  margin-top: 14px;
  color: var(--fg-3);
  font-size: 14px;
}
.prose h2 {
  margin-top: 44px;
  font-size: 21px;
  letter-spacing: -0.014em;
  line-height: 1.3;
}
.prose p,
.prose li {
  color: var(--fg-2);
}
.prose p {
  margin-top: 12px;
}
.prose ul {
  margin: 12px 0 0;
  padding-left: 20px;
}
.prose li + li {
  margin-top: 6px;
}
.prose a {
  color: var(--fg);
}
.prose h3 {
  margin-top: 30px;
  font-size: 17px;
  letter-spacing: -0.01em;
  line-height: 1.35;
}
.prose .part {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: clamp(1.5rem, 1.25rem + 1vw, 1.875rem);
  letter-spacing: -0.022em;
}
.prose .part + h3 {
  margin-top: 18px;
}
.prose strong {
  color: var(--fg);
  font-weight: 600;
}
.legal-id {
  line-height: 1.75;
}
.legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.legal-toc a {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--fg);
  font-size: 14px;
  text-decoration: none;
}
.legal-toc a:hover {
  background: var(--hover);
}
.notfound {
  max-width: 34rem;
}
.notfound .code {
  font-family: var(--font-mono);
  color: var(--fg-3);
  font-size: 14px;
}
.notfound h1 {
  margin-top: 12px;
  font-size: var(--step-4);
}
.notfound p {
  margin-top: 18px;
  color: var(--fg-2);
  font-size: var(--step-1);
}
.notfound .hero-actions {
  margin-top: 28px;
}

/* ---------- Scroll reveal (only below-the-fold items, see app.js) --------- */
.js .reveal.is-pending {
  opacity: 0;
  transform: translateY(14px);
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}

/* ---------- Theme switch cross-fade --------------------------------------- */
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.35s;
}

/* ---------- Reduced motion ------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  .flow-svg .pulse,
  .flow-svg .pulse-glow,
  .flow-svg .chip,
  .flow-svg .node-ring {
    display: none;
  }
  .tg {
    animation: none !important;
  }
  .js .pp-fallback {
    animation-duration: 0s !important;
    animation-delay: 3s !important;
  }
  .js .pp-fallback.is-shown {
    animation: none !important;
  }
  .js .reveal.is-pending {
    opacity: 1;
    transform: none;
  }
  .card:hover,
  .plan-card:hover {
    transform: none;
  }
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* ---------- Fallback for browsers without color-mix() --------------------- */
@supports not (color: color-mix(in oklab, red, blue)) {
  .pc,
  .compare tr > :nth-child(n + 2) {
    --pc-text: var(--pc);
    --pc-soft: transparent;
    --pc-line: var(--line-strong);
  }
  .cover-ph {
    background: var(--bg-sunk);
  }
}

/* ---------- Print (legal pages first of all) ------------------------------ */
@media print {
  html:root,
  html:root[data-theme],
  html:root:not([data-theme="light"]) {
    --bg: #ffffff;
    --bg-raise: #ffffff;
    --bg-sunk: #f2f3f5;
    --line: #d5d7dd;
    --line-strong: #b9bcc4;
    --fg: #000000;
    --fg-2: #222222;
    --fg-3: #444444;
    --ink: #000000;
    --on-ink: #ffffff;
    --shadow-sm: none;
    --shadow-md: none;
    --shadow-lg: none;
    --highlight: none;
    --pc-mix: #000000;
    --pc-amount: 70%;
    color-scheme: light;
  }
  @page {
    margin: 16mm 14mm;
  }
  body {
    display: block;
    background: #fff;
    color: #000;
    font-size: 11pt;
    line-height: 1.5;
  }
  body::before,
  .skip-link,
  .site-header,
  .footer-top,
  .copyright,
  .buybar,
  .hero-actions,
  .pp-actions,
  .card-actions,
  .filters,
  .legal-toc,
  .flow,
  .faq-ico,
  .copy-code {
    display: none !important;
  }
  .js .reveal.is-pending {
    opacity: 1 !important;
    transform: none !important;
  }
  .section,
  .page,
  .pp-hero,
  .pp-body {
    padding-block: 0 12pt;
  }
  .prose {
    max-width: none;
  }
  .prose a[href^="http"]::after,
  .prose a[href^="mailto:"]::after {
    content: " (" attr(href) ")";
    font-size: 0.9em;
    word-break: break-all;
  }
  h1,
  h2,
  h3 {
    break-after: avoid;
    page-break-after: avoid;
  }
  p,
  li {
    orphans: 3;
    widows: 3;
  }
  .card,
  .detail,
  .plan-card,
  .env,
  .notice,
  .compare-note,
  .pp-cta {
    break-inside: avoid;
  }
  .site-footer {
    margin-top: 18pt;
    padding-block: 12pt 0;
  }
  .imprint {
    margin-top: 0;
  }
}
