/* Zeltrik — public site. The product's own world (DESIGN.md): near-white
   canvas, one ink ladder, 1px hairlines, Geist. The only chroma is the
   colour the visitor picks for the product vignette. */

@font-face {
  font-family: "Geist";
  src: url("/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --canvas: #fafafa;
  --surface: #ffffff;
  --surface-2: #f2f2f2;
  --ink: #171717;
  --body: #4d4d4d;
  --mute: #6b6b6b;
  --hairline: #ebebeb;
  --hairline-strong: #dcdcdc;
  --success: #15703a;
  --success-soft: #e7f5ec;
  --button: #26282c;
  --button-fg: #ffffff;
  --button-hover: #3a3c41;
  --ring: rgba(23, 23, 23, 0.45);
  --lift: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 32px -12px rgba(0, 0, 0, 0.12);

  /* The vignette's tenant brand, rewritten by brand.js. */
  --v-primary: #26282c;
  --v-fg: #ffffff;
  --v-text: #26282c;
  --v-subtle: rgba(38, 40, 44, 0.08);

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #08090a;
    --surface: #0f1011;
    --surface-2: #161718;
    --ink: #f7f8f8;
    --body: #d0d6e0;
    --mute: #8a8f98;
    --hairline: #23252a;
    --hairline-strong: #34343a;
    --success: #4cc38a;
    --success-soft: rgba(76, 195, 138, 0.12);
    --button: #ededed;
    --button-fg: #0a0a0b;
    --button-hover: #d4d4d4;
    --ring: rgba(247, 248, 248, 0.5);
    --lift: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    --v-primary: #ededed;
    --v-fg: #0a0a0b;
    --v-text: #ededed;
    --v-subtle: rgba(237, 237, 237, 0.1);
    color-scheme: dark;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--hairline-strong) var(--canvas);
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--body);
  font: 400 16px/1.6 var(--sans);
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--ink);
  color: var(--canvas);
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2 {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  text-wrap: balance;
}

p {
  margin: 0;
}

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

.wrap {
  width: min(1120px, 100% - 48px);
  margin-inline: auto;
}

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

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.wordmark img {
  display: block;
  border-radius: 6px;
}

.quiet-link {
  color: var(--body);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.quiet-link:hover {
  color: var(--ink);
  text-decoration: underline;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: 64px;
  padding-block: 56px 104px;
}

h1 {
  font-size: clamp(38px, 5.2vw, 58px);
  line-height: 1.03;
  letter-spacing: -0.035em;
  max-width: 11.5em;
}

.lede {
  margin-top: 24px;
  max-width: 33rem;
  font-size: 18px;
  line-height: 1.6;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding-inline: 20px;
  border-radius: 6px;
  background: var(--button);
  color: var(--button-fg);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 150ms ease-out;
}

.button:hover {
  background: var(--button-hover);
}

.text-link {
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
}

/* --- Product vignette -------------------------------------------------- */

.demo {
  margin: 0;
}

.vignette {
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--lift);
  overflow: hidden;
  font-size: 13px;
  line-height: 18px;
  font-variant-numeric: tabular-nums;
}

.vignette,
.vignette * {
  transition: background-color 200ms cubic-bezier(0.16, 1, 0.3, 1), color 200ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.v-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--hairline);
}

.v-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--v-primary);
  color: var(--v-fg);
  font-size: 14px;
  font-weight: 600;
}

.v-brand {
  display: grid;
  flex: 1;
  min-width: 0;
}

.v-brand strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.v-brand span {
  color: var(--mute);
  font-size: 12px;
  line-height: 16px;
}

.tag {
  flex: none;
  white-space: nowrap;
  padding: 1px 8px;
  border: 1px dashed var(--hairline-strong);
  border-radius: 6px;
  color: var(--mute);
  font-size: 12px;
  line-height: 18px;
}

.v-body {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  min-height: 316px;
}

.v-nav {
  display: grid;
  align-content: start;
  gap: 2px;
  padding: 12px 8px;
  border-right: 1px solid var(--hairline);
  background: var(--canvas);
}

.v-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding-inline: 8px;
  border-radius: 6px;
  color: var(--body);
  font-weight: 500;
  white-space: nowrap;
}

.v-nav-item svg {
  flex: none;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.v-nav-item.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--hairline);
}

.v-nav-item.is-active svg {
  color: var(--v-text);
}

.v-thread {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
}

.v-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink);
  font-weight: 600;
}

.v-channel {
  padding: 0 6px;
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--body);
  font-size: 11px;
  font-weight: 500;
  line-height: 18px;
}

.v-messages {
  display: grid;
  align-content: start;
  gap: 8px;
  margin: 0;
  padding: 14px;
  list-style: none;
}

.msg {
  max-width: 86%;
  padding: 7px 10px;
  border-radius: 10px;
  color: var(--ink);
}

.msg.in {
  justify-self: start;
  background: var(--surface-2);
  border-bottom-left-radius: 4px;
}

.msg.out {
  justify-self: end;
  border: 1px solid var(--hairline);
  border-bottom-right-radius: 4px;
}

.who {
  display: block;
  color: var(--mute);
  font-size: 11px;
  font-weight: 500;
  line-height: 15px;
}

.v-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-top: 1px solid var(--hairline);
}

.v-note {
  color: var(--mute);
  font-size: 12px;
}

.v-button {
  flex: none;
  padding: 0 12px;
  border-radius: 6px;
  background: var(--v-primary);
  color: var(--v-fg);
  font-weight: 500;
  line-height: 30px;
}

/* --- Swatches ---------------------------------------------------------- */

.swatches {
  margin: 20px 0 0;
  padding: 0;
  border: 0;
}

.swatches legend {
  padding: 0;
  margin-bottom: 10px;
  color: var(--body);
  font-size: 14px;
  font-weight: 500;
}

.swatch-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.swatch {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--s);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

@media (prefers-color-scheme: dark) {
  /* Graphite would vanish on the dark canvas: a 3:1 outline keeps every
     swatch visible as a control. */
  .swatch {
    box-shadow: inset 0 0 0 1px #62666d;
  }
}

.swatch[data-swatch="26282c"] { --s: #26282c; }
.swatch[data-swatch="2457d6"] { --s: #2457d6; }
.swatch[data-swatch="047857"] { --s: #047857; }
.swatch[data-swatch="6d28d9"] { --s: #6d28d9; }
.swatch[data-swatch="b4471f"] { --s: #b4471f; }

.swatch input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.swatch:has(input:checked) {
  box-shadow: 0 0 0 2px var(--canvas), 0 0 0 4px var(--ink);
}

.swatch:has(input:focus-visible) {
  outline: 2px solid var(--ring);
  outline-offset: 5px;
}

.swatch-custom {
  width: auto;
  height: 32px;
  gap: 8px;
  padding: 0 10px 0 4px;
  display: inline-flex;
  border: 1px solid var(--hairline-strong);
  background: var(--surface);
  box-shadow: none;
  color: var(--body);
  font-size: 13px;
  font-weight: 500;
}

.swatch-custom input {
  position: static;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: none;
  opacity: 1;
}

.swatch-custom input::-webkit-color-swatch-wrapper {
  padding: 0;
}

.swatch-custom input::-webkit-color-swatch {
  border: 0;
  border-radius: 6px;
}

.swatch-custom input::-moz-color-swatch {
  border: 0;
  border-radius: 6px;
}

.swatch-custom.is-picked {
  box-shadow: 0 0 0 1px var(--ink);
  border-color: var(--ink);
}

/* --- Channels ---------------------------------------------------------- */

.channels {
  padding-block: 88px;
  border-top: 1px solid var(--hairline);
}

h2 {
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.section-lede {
  margin-top: 16px;
  max-width: 40rem;
  font-size: 17px;
}

.slots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.slot {
  display: grid;
  gap: 6px;
  padding: 18px 18px 16px;
  border-radius: 12px;
}

.slot.is-live {
  border: 1px solid var(--hairline);
  background: var(--surface);
  box-shadow: var(--lift);
}

.slot.is-soon {
  border: 1px dashed var(--hairline-strong);
}

.slot-name {
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.slot.is-soon .slot-name {
  color: var(--body);
}

.slot-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--mute);
  font-size: 13px;
}

.slot.is-live .slot-state {
  color: var(--success);
  font-weight: 500;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px var(--success-soft);
}

/* --- How it is sold ---------------------------------------------------- */

.how {
  padding-block: 88px;
  border-top: 1px solid var(--hairline);
}

.points {
  margin: 40px 0 0;
  border-top: 1px solid var(--hairline);
}

.point {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 32px;
  padding-block: 24px;
  border-bottom: 1px solid var(--hairline);
}

.point:last-child {
  border-bottom: 0;
}

.point dt {
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.point dd {
  margin: 0;
  max-width: 36rem;
}

/* --- Close & footer ---------------------------------------------------- */

.close {
  padding-block: 104px 112px;
  border-top: 1px solid var(--hairline);
}

.close h2 {
  font-size: clamp(30px, 4vw, 44px);
}

.close p {
  margin-top: 12px;
  font-size: 18px;
}

.close-mail {
  display: inline-block;
  margin-top: 28px;
  color: var(--ink);
  font-size: clamp(24px, 3.4vw, 36px);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

.close-mail:hover {
  text-decoration-color: var(--mute);
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 24px 40px;
  border-top: 1px solid var(--hairline);
  color: var(--mute);
  font-size: 14px;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.foot-links [aria-current="page"] {
  color: var(--ink);
}

/* --- Legal pages ------------------------------------------------------- */
/* Read mode: one column at a reading measure, the same ink ladder and
   hairlines as the rest of the site. */

.doc {
  padding-block: 48px 96px;
}

.doc-head {
  max-width: 40rem;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--hairline);
}

.doc h1 {
  max-width: none;
  font-size: clamp(32px, 4.2vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.doc-date {
  margin-top: 14px;
  color: var(--mute);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.doc-intro {
  margin-top: 20px;
  font-size: 17px;
}

.doc-body {
  max-width: 40rem;
}

.doc-body h2 {
  margin-top: 56px;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.doc-body h3 {
  margin: 32px 0 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.doc-body p,
.doc-body ul,
.doc-body ol {
  margin: 12px 0 0;
}

.doc-body h2 + p,
.doc-body h2 + ul,
.doc-body h2 + ol,
.doc-body h3 + ul {
  margin-top: 14px;
}

.doc-body ul,
.doc-body ol {
  padding-left: 1.25em;
}

.doc-body li {
  padding-left: 4px;
}

.doc-body li + li {
  margin-top: 8px;
}

.doc-body li::marker {
  color: var(--mute);
}

.doc-body strong {
  color: var(--ink);
  font-weight: 600;
}

.doc-body a {
  color: var(--ink);
  text-decoration-color: var(--hairline-strong);
}

.doc-body a:hover {
  text-decoration-color: var(--ink);
}

.facts {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 10px 28px;
  margin: 18px 0 0;
  padding: 20px 24px;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: var(--surface);
}

.facts dt {
  color: var(--mute);
  font-size: 14px;
  line-height: 1.6;
  padding-top: 1px;
}

.facts dd {
  margin: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}

/* --- Small screens ----------------------------------------------------- */

@media (max-width: 920px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
    padding-block: 32px 72px;
  }

  .slots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .point {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .channels,
  .how {
    padding-block: 64px;
  }

  .close {
    padding-block: 72px 80px;
  }
}

@media (max-width: 520px) {
  .wrap {
    width: min(1120px, 100% - 40px);
  }

  .lede {
    font-size: 17px;
  }

  .v-body {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .v-nav {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--hairline);
    padding: 8px;
  }

  .foot {
    flex-direction: column;
  }

  .doc {
    padding-block: 32px 72px;
  }

  .doc-body h2 {
    margin-top: 44px;
  }

  .facts {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
    padding: 16px 18px;
  }

  .facts dd + dt {
    margin-top: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vignette,
  .vignette *,
  .button {
    transition: none;
  }
}
