/* ==========================================================================
   Magic Product Video for WooCommerce — plugin site
   The brand violet from the plugin admin, a deep night violet for framing,
   and one warm accent — the flame of the playhead — kept for "video is
   playing here". Display: Unbounded (wide and rounded, like the MPV mark).
   ========================================================================== */

@font-face {
  font-family: "Unbounded";
  src: url("fonts/unbounded.woff2") format("woff2");
  font-weight: 500 800;
  font-display: swap;
}
@font-face {
  font-family: "Onest";
  src: url("fonts/onest.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Martian Mono";
  src: url("fonts/martian-mono.woff2") format("woff2");
  font-weight: 300 600;
  font-stretch: 75% 112.5%;
  font-display: swap;
}

:root {
  --night: #20113d;
  --night-2: #2c1a52;
  --violet: #8045f4;
  --violet-deep: #5a30ab;
  --lilac: #e1d2fc;
  --lilac-soft: #f1eafe;
  --paper: #faf8ff;
  --surface: #ffffff;
  --ink: #20113d;
  --muted: #5e5670;
  --line: #e6dff5;
  --flame: #ff6b2c;

  --f-display: "Unbounded", "Avenir Next", "Segoe UI", sans-serif;
  --f-body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Martian Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 8px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 30px 70px -36px rgba(64, 28, 140, .45), 0 2px 6px rgba(32, 17, 61, .06);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { display: block; max-width: 100%; }
a { color: var(--violet-deep); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--violet); }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
code, pre { font-family: var(--f-mono); }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  background: var(--night);
  color: #fff;
}
.skip:focus { top: 12px; color: #fff; }

/* ---------- Type ---------- */

.h-display {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.02;
}
.h-section {
  font-family: var(--f-display);
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 650;
  letter-spacing: -.025em;
  line-height: 1.08;
  text-wrap: balance;
}
.lede { color: var(--muted); font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; }
.mono {
  font-family: var(--f-mono);
  font-size: 12.5px;
  font-stretch: 87.5%;
  letter-spacing: .01em;
}
.label {
  font-family: var(--f-mono);
  font-size: 11.5px;
  font-stretch: 87.5%;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--violet-deep);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  font: 600 16px/1 var(--f-body);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--violet); color: #fff; box-shadow: 0 12px 28px -14px var(--violet); }
.btn--primary:hover { background: var(--violet-deep); color: #fff; }
.btn--quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--quiet:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--light { background: #fff; color: var(--night); }
.btn--light:hover { background: var(--lilac); color: var(--night); }
.btn--ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); }
.btn--ghost:hover { color: #fff; box-shadow: inset 0 0 0 1.5px #fff; }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 14.5px; }
.btn__arrow { font-size: .9em; }

/* ---------- Header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease);
}
.site-head.is-scrolled { border-bottom-color: var(--line); }
.site-head__bar {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.brand__mark { width: auto; height: 20px; color: var(--violet); }
.site-nav { display: flex; gap: 2px; margin-left: auto; }
.site-nav a {
  padding: 8px 12px;
  white-space: nowrap;
  border-radius: 999px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.site-nav a:hover { color: var(--ink); background: var(--lilac-soft); }
.site-head__cta {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

/* Header calls to action: the demo carries the "playing now" flame dot,
   the purchase is the one solid, lit button on the page bar. */
.head-btn { min-height: 42px; padding: 0 18px; font-size: 14.5px; letter-spacing: -.005em; }
.head-btn--demo {
  gap: 9px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line), 0 1px 2px rgba(32, 17, 61, .05);
}
.head-btn--demo .live-dot { width: 7px; height: 7px; }
.head-btn--demo:hover {
  background: var(--lilac-soft);
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--violet) 40%, var(--line)), 0 1px 2px rgba(32, 17, 61, .05);
}
.head-btn--buy {
  gap: 10px;
  padding-right: 8px;
  background: linear-gradient(180deg, #9061f8 0%, var(--violet) 55%, #7139e8 100%);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 10px 24px -12px rgba(128, 69, 244, .9);
}
.head-btn--buy:hover {
  background: linear-gradient(180deg, #8450f5 0%, var(--violet-deep) 100%);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 14px 28px -12px rgba(90, 48, 171, .9);
}
.head-btn__arrow {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  transition: transform .2s var(--ease), background .2s var(--ease);
}
.head-btn--buy:hover .head-btn__arrow { background: rgba(255, 255, 255, .26); transform: translate(1px, -1px); }

/* ---------- Hero ---------- */

.hero { padding: clamp(32px, 5vw, 64px) 0 clamp(24px, 4vw, 48px); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero__eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); }
.hero__title {
  margin-top: 20px;
  font-size: clamp(42px, 6.4vw, 84px);
  text-wrap: balance;
}
.hero__title em { font-style: normal; color: var(--violet); }
.hero__lede { margin-top: 24px; max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__req { margin-top: 22px; color: var(--muted); }

.live-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--flame);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 107, 44, .55); }
  70%  { box-shadow: 0 0 0 8px rgba(255, 107, 44, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 107, 44, 0); }
}

/* The product gallery: the plugin's actual output, playable. */
.pg {
  position: relative;
  padding: 16px 16px 18px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.pg__url {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 4px 12px;
  color: var(--muted);
}
.pg__url b { color: var(--ink); font-weight: 500; }
.pg__stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-md);
  background: var(--lilac-soft);
}
.pg__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .45s var(--ease);
}
.pg__slide.is-active { opacity: 1; }
.pg__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(32, 17, 61, .72);
  color: #fff;
  backdrop-filter: blur(6px);
  transition: opacity .3s var(--ease);
}
.pg__badge[hidden] { display: inline-flex; opacity: 0; }

/* Timeline: timecode + flame playhead, driven by the video's own clock. */
.pg__time {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin: 14px 4px 0;
  color: var(--muted);
}
.pg__tc { color: var(--ink); font-variant-numeric: tabular-nums; min-width: 4.6em; }
.pg__track {
  position: relative;
  height: 18px;
  background:
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 12.5%) 0 50% / 100% 8px no-repeat,
    linear-gradient(var(--line), var(--line)) 0 50% / 100% 2px no-repeat;
}
.pg__fill {
  position: absolute;
  left: 0;
  top: 50%;
  height: 2px;
  width: 0;
  margin-top: -1px;
  background: var(--violet);
}
.pg__head {
  position: absolute;
  top: 50%;
  left: 0;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--flame);
  box-shadow: 0 0 0 4px rgba(255, 107, 44, .18);
}
.pg__time.is-photo .pg__fill,
.pg__time.is-photo .pg__head { opacity: 0; }

.pg__thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.pg__thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: var(--lilac-soft);
  cursor: pointer;
  opacity: .6;
  transition: opacity .2s var(--ease), box-shadow .2s var(--ease);
}
.pg__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pg__thumb:hover { opacity: .9; }
.pg__thumb[aria-pressed="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--violet); }
.pg__thumb--video::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 30%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(32, 17, 61, .62);
}
.pg__play {
  position: absolute;
  inset: 0;
  z-index: 1;
  margin: auto;
  width: 11%;
  aspect-ratio: 6 / 7;
  background: #fff;
  clip-path: polygon(14% 0, 100% 50%, 14% 100%);
  transform: translateX(10%);
}
.pg__caption { margin: 14px 4px 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

/* ---------- Sections ---------- */

.section { padding: clamp(56px, 7vw, 104px) 0; }
.section__head { max-width: 760px; }
.section__head .h-section { margin-top: 14px; }
.section__head .lede { margin-top: 18px; }

/* How it works: a real sequence, so it is numbered. */
.flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 48px;
  counter-reset: step;
}
.step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 22px 24px;
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.step__no {
  font-family: var(--f-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--violet);
}
.step__no::before { counter-increment: step; content: "0" counter(step); }
.step h3 { font-family: var(--f-display); font-size: 19px; font-weight: 650; letter-spacing: -.015em; }
.step p { color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 30px;
  right: -12px;
  z-index: 1;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--violet);
  border-right: 2px solid var(--violet);
  transform: rotate(45deg);
}

.files { display: flex; flex-direction: column; gap: 6px; margin-top: auto; padding-top: 6px; }
.file {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border-radius: var(--r-sm);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
}
.file span:last-child { color: var(--muted); white-space: nowrap; }

.engine { margin-top: auto; }
.seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
}
.seg button {
  padding: 7px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 600 13.5px/1 var(--f-body);
  white-space: nowrap;
  cursor: pointer;
}
.seg button[aria-pressed="true"] { background: var(--violet); color: #fff; }
.engine__text { margin-top: 10px; color: var(--muted); font-size: 14.5px; line-height: 1.5; min-height: 4.5em; }
.flow__more { margin-top: 24px; font-size: 15.5px; }

/* Inside wp-admin: night frame around light UI screenshots. */
.admin { background: var(--night); color: #fff; }
.admin .label { color: var(--lilac); }
.admin .lede { color: color-mix(in srgb, var(--lilac) 82%, transparent); }
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 40px;
}
.tab {
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  color: color-mix(in srgb, var(--lilac) 85%, transparent);
  font: 500 15px/1 var(--f-body);
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.tab:hover { background: rgba(255, 255, 255, .13); color: #fff; }
.tab[aria-selected="true"] { background: #fff; color: var(--night); }
.screens { margin-top: 22px; }
.screen {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.screen[hidden] { display: none; }
.screen__text { padding-top: 12px; }
.screen__text h3 { font-family: var(--f-display); font-size: 22px; font-weight: 650; letter-spacing: -.015em; }
.screen__text p { margin-top: 12px; color: color-mix(in srgb, var(--lilac) 85%, transparent); font-size: 16px; }
.screen__text .mono { display: block; margin-top: 18px; color: var(--lilac); opacity: .75; }
.screen__shot {
  overflow: hidden;
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 40px 80px -40px #000;
  animation: shot-in .35s var(--ease);
}
.screen__shot img { width: 100%; height: auto; }
.screen__shot--narrow { max-width: 360px; }
@keyframes shot-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Storefront: real product cards with their clips. */
.store__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 44px;
}
.card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  background: var(--lilac-soft);
}
.card__media video { width: 100%; height: 100%; object-fit: cover; }
.card__eyebrow { display: block; margin-top: 14px; color: var(--muted); }
.card__name { margin-top: 4px; font-size: 17px; font-weight: 600; line-height: 1.3; }
.card__price { margin-top: 4px; color: var(--muted); font-size: 15px; }
.store__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: 40px;
  padding: 22px 24px;
  border-radius: var(--r-md);
  background: var(--lilac-soft);
}
.store__foot p { max-width: 46em; font-size: 15.5px; }

/* What's included */
.included {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 56px;
  margin-top: 44px;
}
.inc {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.inc dt { padding-top: 3px; }
.inc dd ul { display: flex; flex-direction: column; gap: 8px; }
.inc dd li { position: relative; padding-left: 20px; font-size: 16px; line-height: 1.5; }
.inc dd li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .58em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--violet);
}
.inc code { padding: 1px 5px; border-radius: 5px; background: var(--lilac-soft); font-size: .86em; }

/* Self-hosted vs embed */
.vs {
  overflow: hidden;
  margin-top: 44px;
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.vs table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.vs th, .vs td { padding: 16px 20px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.vs thead th { border-top: 0; font-weight: 600; }
.vs thead th:nth-child(2) { color: var(--violet-deep); }
.vs tbody th { width: 24%; color: var(--muted); font-weight: 500; }
.vs td:nth-child(2) { width: 38%; background: color-mix(in srgb, var(--lilac-soft) 55%, transparent); }
.vs td:nth-child(3) { color: var(--muted); }

/* Developers */
.dev__grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.dev__grid .h-section { margin-top: 14px; }
.dev__points { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; }
.dev__points li { display: flex; gap: 12px; font-size: 16px; }
.dev__points li::before { content: "→"; color: var(--violet); }
.code {
  overflow-x: auto;
  margin: 0;
  padding: 26px 26px 28px;
  border-radius: var(--r-lg);
  background: var(--night);
  color: #e9e1fb;
  font-size: 13.5px;
  line-height: 1.75;
  box-shadow: var(--shadow);
}
.code .c { color: #9f8fc4; }
.code .k { color: #c8affa; }
.code .s { color: #ffc29f; }
.code .f { color: #fff; font-weight: 500; }

/* FAQ */
.faq__list { max-width: 820px; margin-top: 40px; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 2px;
  font-size: 18px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-right: 2px solid var(--violet);
  border-bottom: 2px solid var(--violet);
  transform: rotate(45deg) translateY(-3px);
  transition: transform .2s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq__item p { padding: 0 2px 22px; max-width: 46em; color: var(--muted); font-size: 16.5px; }
.faq__item code { padding: 1px 5px; border-radius: 5px; background: var(--lilac-soft); color: var(--ink); font-size: .86em; }

/* Closing call */
.close {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 6vw, 72px);
  border-radius: 28px;
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(128, 69, 244, .55), transparent 60%),
    var(--night);
  color: #fff;
}
.close h2 { max-width: 15em; font-size: clamp(30px, 4.2vw, 52px); }
.close p { margin-top: 18px; max-width: 36em; color: color-mix(in srgb, var(--lilac) 85%, transparent); }
.close__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.close .mono { display: block; margin-top: 26px; color: var(--lilac); opacity: .7; }

/* Contact */
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.contact__intro .h-section { margin-top: 14px; }
.contact__intro .lede { margin-top: 18px; max-width: 30em; }
.contact__facts { display: grid; gap: 18px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.contact__facts dd { margin-top: 6px; color: var(--muted); font-size: 16px; }
.contact__facts dd a { font-family: var(--f-display); font-size: 18px; font-weight: 600; letter-spacing: -.01em; }

.contact-form {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 3.4vw, 36px);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.contact-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 14.5px; font-weight: 600; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.field select {
  appearance: none;
  padding-right: 40px;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235e5670' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 15px center;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: color-mix(in srgb, var(--violet) 35%, var(--line)); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--violet); background-color: #fff; }
.field [aria-invalid="true"] { border-color: #c2410c; }
.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: 14.5px; line-height: 1.5; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--violet); }
.check.is-invalid { color: #b8441a; }
.contact-form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.contact-form__foot .btn[disabled] { opacity: .6; cursor: progress; }
.contact-form__status { font-size: 15px; color: var(--muted); }
.contact-form__status.is-ok { color: #1f7a4d; font-weight: 500; }
.contact-form__status.is-error { color: #b8441a; font-weight: 500; }

/* Footer */
.site-foot { padding: 56px 0 40px; }
.site-foot__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.site-foot p { margin-top: 12px; max-width: 30em; color: var(--muted); font-size: 15px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; }
.site-foot nav a { color: var(--ink); text-decoration: none; }
.site-foot nav a:hover { color: var(--violet); text-decoration: underline; }
.site-foot .site-foot__legal { max-width: none; font-size: 12.5px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); }

/* Cookie notice */
.cookie {
  position: fixed;
  left: max(16px, env(safe-area-inset-left));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 60;
  width: min(400px, calc(100vw - 32px));
  padding: 20px 22px;
  border-radius: var(--r-md);
  background: var(--night);
  color: #fff;
  box-shadow: 0 24px 60px -24px rgba(20, 8, 44, .7);
  animation: cookie-in .4s var(--ease) both;
}
.cookie[hidden] { display: none; }
.cookie__label { display: flex; align-items: center; gap: 8px; color: var(--lilac); }
.cookie__label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--flame); }
.cookie p { margin-top: 10px; color: color-mix(in srgb, var(--lilac) 88%, transparent); font-size: 14.5px; line-height: 1.55; }
.cookie a { color: #fff; }
.cookie a:hover { color: var(--lilac); }
.cookie__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 16px; }
.cookie__actions a { font-size: 14.5px; }
.cookie :focus-visible { outline-color: var(--lilac); }
@keyframes cookie-in { from { opacity: 0; transform: translateY(12px); } }
.linklike { padding: 0; border: 0; background: none; color: var(--ink); font: inherit; cursor: pointer; }
.linklike:hover { color: var(--violet); text-decoration: underline; }
.doc-hero .doc-hero__title--long { max-width: 14em; font-size: clamp(30px, 5vw, 64px); text-wrap: balance; }
.doc .linklike { color: var(--violet-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }

/* ---------- Responsive ---------- */

@media (max-width: 1240px) {
  .site-nav a { padding: 8px 9px; font-size: 14.5px; }
  .site-head .brand__name { display: none; }
}

@media (max-width: 1120px) {
  .site-nav { display: none; }
  .site-head__cta { margin-left: auto; padding-left: 0; border-left: 0; }
}

@media (max-width: 1040px) {
  .site-head__cta { margin-left: auto; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:nth-child(2)::after { display: none; }
  .screen { grid-template-columns: minmax(0, 1fr); }
  .screen__text { padding-top: 0; }
  .included { grid-template-columns: minmax(0, 1fr); }
  .dev__grid { grid-template-columns: minmax(0, 1fr); }
  .contact__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .pg { max-width: 520px; }
  .store__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-head__cta { gap: 8px; }
  .head-btn { min-height: 40px; padding: 0 14px; }
  .head-btn--buy { padding-right: 6px; }
  .head-btn__long { display: none; }
  .brand__name { display: none; }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .step::after { display: none; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); scrollbar-width: none; }
  .tab { flex: none; }
  .inc { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .vs th, .vs td { padding: 12px 12px; font-size: 14px; }
  .vs tbody th { width: auto; }
  .store__grid { gap: 12px; }
  .code { font-size: 12.5px; padding: 20px; }
  .contact-form__row { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 360px) {
  .head-btn { padding: 0 11px; font-size: 14px; }
  .head-btn--demo { gap: 7px; }
  .head-btn--buy { gap: 8px; padding-right: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  .live-dot { animation: none; }
  .pg__slide, .screen__shot { transition: none; animation: none; }
  .cookie { animation: none; }
  .head-btn--buy:hover, .head-btn--buy:hover .head-btn__arrow { transform: none; }
}
