/* Konecto sites — shared design system.
 * Off-white paper, black ink, one electric violet for connection lines.
 * Tokens follow the marketing brief; move them to packages/tokens when the apps adopt them. */

:root {
  --paper: #f5f3ee;
  --paper-raised: #fbfaf7;
  --ink: #0e0d12;
  --ink-muted: #5a5863;
  --rule: #e3e0d8;
  --violet: #6b3bf5;
  --violet-deep: #4a1fc4;
  --violet-soft: #ece6ff;
  --violet-glow: rgba(107, 59, 245, 0.35);
  --signal: #c8ff4d;

  --font-sans: 'Geist', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --radius: 14px;
  --radius-sm: 8px;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

::selection {
  background: var(--violet);
  color: #fff;
}

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

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  z-index: 100;
}
.skip:focus {
  left: 8px;
}

/* ---------- Layout ---------- */

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.wrap-narrow {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section {
  position: relative;
}

.section {
  padding: clamp(72px, 10vw, 140px) 0;
}

.section-tight {
  padding: clamp(48px, 6vw, 88px) 0;
}

.dark {
  background: var(--ink);
  color: var(--paper);
}
.dark .muted {
  color: #a9a6b2;
}
.dark .card {
  background: #17151d;
  border-color: #2a2733;
}

.raised {
  background: var(--paper-raised);
}

.grid-bg {
  background-image: linear-gradient(var(--rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: -1px -1px;
}
.grid-bg-fade {
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
  position: absolute;
  inset: 0;
  opacity: 0.55;
  pointer-events: none;
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.04;
}

.display {
  font-size: clamp(44px, 8.2vw, 104px);
  letter-spacing: -0.045em;
  line-height: 0.96;
  font-weight: 680;
}

.h1 {
  font-size: clamp(38px, 6vw, 72px);
  letter-spacing: -0.04em;
}

.h2 {
  font-size: clamp(32px, 4.6vw, 56px);
}

.h3 {
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.lead {
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.5;
  color: var(--ink-muted);
  max-width: 640px;
}
.dark .lead {
  color: #b9b6c2;
}

.muted {
  color: var(--ink-muted);
}

.mono,
.label {
  font-family: var(--font-mono);
}

.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--violet-deep);
}
.dark .label {
  color: #b9a3ff;
}
.label::before {
  content: '';
  width: 18px;
  height: 1px;
  background: currentColor;
}

.violet {
  color: var(--violet-deep);
}
.dark .violet {
  color: #b9a3ff;
}

p {
  margin: 0 0 1em;
}

.stack > * + * {
  margin-top: 20px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--rule);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand svg.wordmark {
  height: 22px;
  width: auto;
}
.brand .site-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet-deep);
  border: 1px solid var(--rule);
  padding: 3px 7px;
  border-radius: 999px;
}
.nav {
  display: flex;
  gap: 4px;
  margin-left: 8px;
}
.nav a {
  text-decoration: none;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink);
  transition: background 0.15s var(--ease);
}
.nav a:hover,
.nav a[aria-current='page'] {
  background: rgba(14, 13, 18, 0.06);
}
.header-cta {
  margin-left: auto;
  display: flex;
  gap: 10px;
  align-items: center;
}
.menu-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav,
  .header-cta .btn-ghost {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .header-cta {
    margin-left: 0;
  }
  .site-header.open .nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: 12px var(--gutter) 20px;
    margin: 0;
  }
  .site-header.open .nav a {
    padding: 12px 8px;
    font-size: 17px;
  }
}
@media (max-width: 520px) {
  .header-cta .btn {
    padding: 9px 14px;
    font-size: 14px;
  }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-size: 15px;
  font-weight: 560;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  transition: transform 0.15s var(--ease), background 0.15s var(--ease), color 0.15s var(--ease),
    border-color 0.15s var(--ease);
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-1px);
  background: var(--violet-deep);
  border-color: var(--violet-deep);
}
.btn-violet {
  background: var(--violet);
  border-color: var(--violet);
  color: #fff;
}
.btn-violet:hover {
  background: var(--violet-deep);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(14, 13, 18, 0.18);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.dark .btn {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.dark .btn:hover {
  background: var(--violet);
  border-color: var(--violet);
  color: #fff;
}
.dark .btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(245, 243, 238, 0.28);
}
.btn-lg {
  padding: 15px 26px;
  font-size: 16px;
}
.btn .arrow {
  transition: transform 0.15s var(--ease);
}
.btn:hover .arrow {
  transform: translateX(3px);
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.trust {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}
.dark .trust {
  color: #a9a6b2;
}

/* ---------- Cards and grids ---------- */

.card {
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}
a.card {
  text-decoration: none;
  display: block;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
a.card:hover {
  transform: translateY(-3px);
  border-color: var(--violet);
  box-shadow: 0 18px 40px -24px var(--violet-glow);
}
.card h3 {
  font-size: 21px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 10px;
}
.card p:last-child {
  margin-bottom: 0;
}
.card .more {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 560;
  color: var(--violet-deep);
}

.grid {
  display: grid;
  gap: 18px;
}
.g2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.g3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.g4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 980px) {
  .g3,
  .g4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .g2,
  .g3,
  .g4 {
    grid-template-columns: minmax(0, 1fr);
  }
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.split.flip > :first-child {
  order: 2;
}
@media (max-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
  .split.flip > :first-child {
    order: 0;
  }
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.section-head .label {
  margin-bottom: 18px;
}
.section-head .lead {
  margin-top: 18px;
}
.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.center .lead {
  margin-left: auto;
  margin-right: auto;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: var(--paper-raised);
  color: var(--ink-muted);
}
.pill.live {
  color: var(--violet-deep);
  border-color: #d9cfff;
  background: var(--violet-soft);
}
.pill.live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 0 3px rgba(107, 59, 245, 0.2);
}

.list-check {
  list-style: none;
  padding: 0;
  margin: 0;
}
.list-check li {
  position: relative;
  padding-left: 28px;
  margin: 10px 0;
}
.list-check li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 14px;
  height: 1.5px;
  background: var(--violet);
}
.list-check li::after {
  content: '';
  position: absolute;
  left: 14px;
  top: calc(0.62em - 2.5px);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet);
}

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

.hero {
  position: relative;
  padding: clamp(56px, 8vw, 110px) 0 clamp(40px, 6vw, 72px);
  overflow: hidden;
}
.hero .display {
  max-width: 11ch;
}
.hero .lead {
  margin-top: 26px;
}
.hero .cta-row {
  margin-top: 34px;
}
.hero .trust {
  margin-top: 16px;
}

/* The room: attendees as dots, one violet line through them */
.room {
  position: relative;
  margin-top: clamp(40px, 6vw, 72px);
  border-radius: 22px;
  background: radial-gradient(120% 90% at 30% 10%, #221d33 0%, #0e0d12 60%);
  overflow: hidden;
  aspect-ratio: 16 / 7.2;
  min-height: 360px;
  color: var(--paper);
  isolation: isolate;
}
.room svg.room-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.room .stage-light {
  position: absolute;
  inset: -20% 20% auto 20%;
  height: 60%;
  background: radial-gradient(closest-side, rgba(185, 163, 255, 0.28), transparent);
  filter: blur(10px);
  z-index: -1;
}
.room-caption {
  position: absolute;
  left: 24px;
  bottom: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a9a6b2;
}
.node-tag {
  position: absolute;
  transform: translate(-50%, -130%);
  background: rgba(14, 13, 18, 0.82);
  border: 1px solid rgba(185, 163, 255, 0.45);
  color: var(--paper);
  border-radius: 10px;
  padding: 8px 11px;
  font-size: 12.5px;
  line-height: 1.25;
  white-space: nowrap;
  backdrop-filter: blur(6px);
  opacity: 0;
}
.node-tag b {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #b9a3ff;
  margin-bottom: 2px;
}
@media (max-width: 700px) {
  .room {
    aspect-ratio: 16 / 11;
    min-height: 0;
  }
  .node-tag {
    font-size: 0;
    padding: 4px 6px;
    border-radius: 7px;
  }
  .node-tag b {
    font-size: 9px;
    margin: 0;
  }
  .room-caption {
    display: none;
  }
}

/* ---------- Problem wall ---------- */

.problems .card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
}
.problems .quote {
  font-size: 23px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 600;
}
.problems .fix {
  margin-top: auto;
  padding-top: 18px;
  font-size: 15px;
  color: var(--ink-muted);
}
.problems .fix::before {
  content: '→ ';
  color: var(--violet);
}
.problems .stub {
  position: absolute;
  top: 26px;
  right: 22px;
  width: 36px;
  height: 1.5px;
  background: var(--rule);
  transition: background 0.4s var(--ease), width 0.4s var(--ease);
}
.problems .card.connected .stub {
  background: var(--violet);
  width: 52px;
}

/* ---------- Two ways in ---------- */

.ways {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 28px;
  align-items: center;
}
.ways .center-node {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--violet);
  color: #fff;
  box-shadow: 0 0 0 10px rgba(107, 59, 245, 0.16), 0 0 60px var(--violet-glow);
}
.ways .center-node svg {
  width: 44px;
}
@media (max-width: 900px) {
  .ways {
    grid-template-columns: minmax(0, 1fr);
  }
  .ways .center-node {
    margin: 0 auto;
  }
}
.toggle {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid #2a2733;
  background: #17151d;
  margin-bottom: 26px;
}
.toggle button {
  font: inherit;
  font-size: 14px;
  border: 0;
  background: transparent;
  color: #b9b6c2;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
}
.toggle button[aria-pressed='true'] {
  background: var(--paper);
  color: var(--ink);
}

/* ---------- Mock UI ---------- */

.mock {
  background: var(--paper-raised);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 16px;
  box-shadow: 0 30px 60px -40px rgba(14, 13, 18, 0.35);
  overflow: hidden;
}
.dark .mock {
  border-color: #2a2733;
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.mock-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d8d4ca;
}
.mock-bar span {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mock-body {
  padding: 20px;
}
.field {
  margin-bottom: 12px;
}
.field small {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 4px;
}
.field div {
  border: 1px solid var(--rule);
  background: #fff;
  border-radius: 8px;
  padding: 9px 11px;
  font-size: 14.5px;
  min-height: 40px;
}
.field .typing::after {
  content: '▍';
  color: var(--violet);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bubble {
  max-width: 88%;
  padding: 11px 14px;
  border-radius: 14px;
  font-size: 14.5px;
  line-height: 1.45;
}
.bubble.me {
  align-self: flex-end;
  background: var(--ink);
  color: var(--paper);
  border-bottom-right-radius: 4px;
}
.bubble.ai {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--rule);
  border-bottom-left-radius: 4px;
}
.tool-call {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--violet-deep);
  background: var(--violet-soft);
  border-radius: 6px;
  padding: 3px 7px;
  display: inline-block;
  margin: 4px 4px 0 0;
}

.event-card-mock .cover {
  height: 120px;
  background: linear-gradient(135deg, #0e0d12, #2b2340 60%, #6b3bf5);
  position: relative;
}
.event-card-mock .cover span {
  position: absolute;
  left: 16px;
  bottom: 12px;
  color: #fff;
  font-weight: 650;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.ticket-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 11px 13px;
  margin-top: 10px;
  font-size: 14.5px;
  background: #fff;
}
.ticket-row .mono {
  font-size: 13px;
}

/* Phone */
.phone {
  width: min(300px, 100%);
  margin: 0 auto;
  border-radius: 38px;
  padding: 10px;
  background: #1a1822;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6), inset 0 0 0 1px #2e2b38;
}
.phone-screen {
  border-radius: 30px;
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
  min-height: 520px;
  padding: 18px 16px;
}
.phone-top {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-muted);
  margin-bottom: 16px;
}
.contact-card {
  border-radius: 18px;
  background: var(--ink);
  color: var(--paper);
  padding: 18px;
  position: relative;
  overflow: hidden;
}
.contact-card::after {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 1.5px solid rgba(185, 163, 255, 0.5);
}
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 650;
  font-size: 15px;
  color: #fff;
  background: linear-gradient(135deg, #6b3bf5, #b9a3ff);
  flex: none;
}
.qr {
  width: 100%;
  aspect-ratio: 1;
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  margin-top: 14px;
}
.qr svg {
  width: 100%;
  height: 100%;
}
.conn-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 13.5px;
}
.conn-row:last-child {
  border-bottom: 0;
}
.conn-row small {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-muted);
}
.conn-row .avatar {
  width: 34px;
  height: 34px;
  font-size: 12px;
}

/* Counters and stats */
.stat {
  font-size: clamp(40px, 5.4vw, 68px);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 10px;
}
.dark .stat-label {
  color: #a9a6b2;
}
.bars {
  display: grid;
  gap: 12px;
}
.bar {
  display: grid;
  grid-template-columns: 110px 1fr 56px;
  gap: 12px;
  align-items: center;
  font-size: 14px;
}
.bar .track {
  height: 10px;
  border-radius: 99px;
  background: var(--violet-soft);
  overflow: hidden;
}
.bar .fill {
  height: 100%;
  width: 0;
  background: var(--violet);
  border-radius: 99px;
  transition: width 1s var(--ease);
}
.bar .mono {
  text-align: right;
  font-size: 13px;
}
.pnl {
  display: grid;
  gap: 0;
  font-size: 15px;
}
.pnl div {
  display: flex;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid var(--rule);
}
.pnl div:last-of-type {
  border-bottom: 0;
  font-weight: 650;
}
.pnl .mono {
  font-size: 14.5px;
}
.kanban {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.kanban .col {
  background: var(--paper);
  border-radius: 10px;
  padding: 10px;
  min-height: 160px;
}
.kanban .col small {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.kanban .task {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 8px 9px;
  font-size: 13px;
  margin-top: 8px;
}
.kanban .task.done {
  color: var(--ink-muted);
  text-decoration: line-through;
}

/* Modules */
.modules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 900px) {
  .modules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .modules {
    grid-template-columns: minmax(0, 1fr);
  }
}
.module {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--paper-raised);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.module:hover {
  border-color: var(--violet);
  transform: translateY(-2px);
}
.module strong {
  font-size: 18px;
  letter-spacing: -0.01em;
}
.module span {
  font-size: 14.5px;
  color: var(--ink-muted);
}
.module .pill {
  align-self: flex-start;
  margin-bottom: 6px;
}
.core-block {
  border-radius: var(--radius);
  padding: 26px;
  background: var(--ink);
  color: var(--paper);
  margin-bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  align-items: center;
  justify-content: space-between;
}
.core-block ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.core-block li {
  font-size: 14px;
  border: 1px solid #2e2b38;
  border-radius: 999px;
  padding: 6px 12px;
}

/* Code */
pre,
code {
  font-family: var(--font-mono);
}
pre {
  background: #121118;
  color: #e6e3ee;
  border-radius: 12px;
  padding: 18px 20px;
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0 0 1.2em;
  border: 1px solid #25222e;
}
:not(pre) > code {
  background: rgba(107, 59, 245, 0.09);
  color: var(--violet-deep);
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 0.9em;
}
.dark :not(pre) > code {
  color: #cdbfff;
  background: rgba(185, 163, 255, 0.12);
}
pre .c {
  color: #7d7890;
}
pre .k {
  color: #b9a3ff;
}
pre .s {
  color: #c8ff4d;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper-raised);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
th,
td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
th {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: var(--paper);
}
tr:last-child td {
  border-bottom: 0;
}

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--rule);
  padding: 20px 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  font-family: var(--font-mono);
  color: var(--violet);
  font-size: 22px;
  line-height: 1;
  transition: transform 0.2s var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  margin: 12px 0 0;
  color: var(--ink-muted);
  max-width: 700px;
}

/* Steps */
.steps {
  counter-reset: step;
  display: grid;
  gap: 18px;
}
.step {
  counter-increment: step;
  position: relative;
  padding-left: 58px;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--violet-deep);
  border: 1px solid #d9cfff;
  background: var(--violet-soft);
  border-radius: 999px;
  padding: 4px 9px;
}
.step h3 {
  font-size: 20px;
  margin-bottom: 6px;
}

/* Final CTA */
.final {
  text-align: center;
}
.final .display {
  max-width: 14ch;
  margin: 0 auto;
}
.final .cta-row {
  justify-content: center;
  margin-top: 36px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 64px 0 40px;
  font-size: 14.5px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 32px;
}
.footer-grid h4 {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 14px;
}
.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-grid li {
  margin: 8px 0;
}
.footer-grid a {
  text-decoration: none;
  color: var(--ink);
}
.footer-grid a:hover {
  color: var(--violet-deep);
}
.footer-base {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  color: var(--ink-muted);
  font-size: 13.5px;
}
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}

/* ---------- Docs / help layout ---------- */

.docs-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  padding: 40px 0 96px;
}
.docs-nav {
  position: sticky;
  top: 88px;
  align-self: start;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  font-size: 14.5px;
  padding-right: 8px;
}
.docs-nav h4 {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 22px 0 8px;
}
.docs-nav h4:first-child {
  margin-top: 0;
}
.docs-nav h4 {
  padding-left: 11px;
}
.docs-nav a {
  display: block;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 7px;
  color: var(--ink);
  border-left: 1.5px solid transparent;
}
.docs-nav a:hover {
  background: rgba(14, 13, 18, 0.05);
}
.docs-nav a[aria-current='page'] {
  color: var(--violet-deep);
  background: var(--violet-soft);
  border-left-color: var(--violet);
}
.prose {
  max-width: 760px;
}
.prose h1 {
  font-size: clamp(34px, 4.4vw, 50px);
  letter-spacing: -0.035em;
  margin-bottom: 16px;
}
.prose h2 {
  font-size: 27px;
  letter-spacing: -0.02em;
  margin: 48px 0 14px;
  line-height: 1.15;
}
.prose h3 {
  font-size: 20px;
  letter-spacing: -0.01em;
  margin: 32px 0 10px;
}
.prose p,
.prose li {
  color: #2c2a33;
}
.prose ul,
.prose ol {
  padding-left: 22px;
  margin: 0 0 1.2em;
}
.prose li {
  margin: 6px 0;
}
.prose a {
  color: var(--violet-deep);
  text-underline-offset: 3px;
}
.prose .table-wrap {
  margin: 0 0 1.4em;
}
.prose .callout {
  border: 1px solid #d9cfff;
  background: var(--violet-soft);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 0 0 1.4em;
  font-size: 15.5px;
}
.prose .callout strong {
  color: var(--violet-deep);
}
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 18px;
}
.breadcrumb a {
  text-decoration: none;
  color: var(--violet-deep);
}
.pager {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.pager a {
  text-decoration: none;
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 12px 16px;
  flex: 1;
  max-width: 48%;
  background: var(--paper-raised);
}
.pager a:hover {
  border-color: var(--violet);
}
.pager small {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.pager .next {
  text-align: right;
  margin-left: auto;
}
@media (max-width: 860px) {
  .docs-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .docs-nav {
    position: static;
    max-height: none;
    border: 1px solid var(--rule);
    border-radius: 12px;
    padding: 14px;
    background: var(--paper-raised);
  }
}

.search {
  position: relative;
  max-width: 620px;
}
.search input {
  width: 100%;
  font: inherit;
  font-size: 17px;
  padding: 16px 18px 16px 46px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: var(--paper-raised);
  color: var(--ink);
}
.search input:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(107, 59, 245, 0.14);
}
.search svg {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  color: var(--ink-muted);
}
.search-results {
  margin-top: 14px;
}
.search-results a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
}
.search-results a:hover {
  background: var(--violet-soft);
}
.search-results small {
  display: block;
  color: var(--ink-muted);
  font-size: 13.5px;
}

/* ---------- Motion ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
}
.js-off .reveal,
.reduce .reveal {
  opacity: 1;
  transform: none;
}
.line-path {
  fill: none;
  stroke: var(--violet);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dark .line-path,
.room .line-path {
  stroke: #9b7bff;
  filter: drop-shadow(0 0 6px rgba(155, 123, 255, 0.7));
}
.line-node {
  fill: var(--violet);
}
.room .line-node {
  fill: #c9b8ff;
}

.connector {
  position: absolute;
  pointer-events: none;
  overflow: visible;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .field .typing::after {
    animation: none;
  }
}

/* Utilities */
.mt-0 {
  margin-top: 0;
}
.mt-s {
  margin-top: 14px;
}
.mt-m {
  margin-top: 28px;
}
.mt-l {
  margin-top: 56px;
}
.mb-0 {
  margin-bottom: 0;
}
.hide-sm {
}
@media (max-width: 640px) {
  .hide-sm {
    display: none;
  }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.final-mark {
  width: 56px;
  color: var(--violet);
}

/* Light mock-ups placed on dark sections keep light-surface colours */
.dark .mock .btn {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.dark .mock .btn-violet {
  background: var(--violet);
  border-color: var(--violet);
  color: #fff;
}
.dark .mock .muted,
.dark .phone .muted {
  color: var(--ink-muted);
}
.dark .mock .violet {
  color: var(--violet-deep);
}

.h1 + .lead,
.h2 + .lead,
.h3 + .lead {
  margin-top: 18px;
}
