/* ==========================================================================
   Trivecta — trivecta.uk
   Light editorial system: navy hero band, purple primary, pastel cards.
   ========================================================================== */

/* Fonts (self-hosted, latin subset, variable weight) ---------------------- */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

/* Tokens ----------------------------------------------------------------- */
:root {
  color-scheme: light;

  /* Brand */
  --primary: #5645d4;
  --primary-pressed: #4534b3;
  --primary-deep: #3a2a99;
  --on-primary: #ffffff;
  --navy: #0a1530;
  --navy-deep: #070f24;
  --navy-mid: #1a2a52;
  --link: #0075de;
  --link-pressed: #005bab;

  /* Spectrum */
  --orange: #dd5b00;
  --orange-deep: #793400;
  --pink: #ff64c8;
  --pink-deep: #a02e6d;
  --purple: #7b3ff2;
  --purple-300: #d6b6f6;
  --purple-800: #391c57;
  --teal: #2a9d99;
  --green: #1aae39;
  --green-text: #137a2c; /* AA-legible green for text on mint */
  --yellow: #f5d75e;
  --brown: #523410;

  /* Card tints */
  --tint-peach: #ffe8d4;
  --tint-rose: #fde0ec;
  --tint-mint: #d9f3e1;
  --tint-lavender: #e6e0f5;
  --tint-sky: #dcecfa;
  --tint-yellow: #fef7d6;
  --tint-yellow-bold: #f9e79f;
  --tint-cream: #f8f5e8;
  --tint-gray: #f0eeec;

  /* Surface */
  --canvas: #ffffff;
  --surface: #f6f5f4;
  --surface-soft: #fafaf9;
  --hairline: #e5e3df;
  --hairline-soft: #ede9e4;
  --hairline-strong: #c8c4be;

  /* Text */
  --ink-deep: #000000;
  --ink: #1a1a1a;
  --charcoal: #37352f;
  --slate: #5d5b54;
  --steel: #787671;
  --stone: #a4a097;
  --muted: #bbb8b1;
  --on-dark: #ffffff;
  --on-dark-muted: #a4a097;

  /* Semantic */
  --success: #1aae39;
  --warning: #dd5b00;
  --error: #e03131;

  /* Type */
  --font: "Inter", -apple-system, system-ui, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Shape */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-xxl: 20px;
  --r-xxxl: 24px;
  --r-full: 9999px;

  /* Elevation */
  --shadow-1: rgba(15, 15, 15, 0.04) 0 1px 2px 0;
  --shadow-2: rgba(15, 15, 15, 0.08) 0 4px 12px 0;
  --shadow-3: rgba(15, 15, 15, 0.2) 0 24px 48px -8px;
  --shadow-4: rgba(15, 15, 15, 0.16) 0 16px 48px -8px;

  /* Layout */
  --container: 1280px;
  --gutter: clamp(16px, 4vw, 32px);
  --nav-h: 64px;
  --section: 96px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur: 180ms;
}

/* Reset ------------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
  overflow-x: clip;
}
img,
svg {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3,
h4,
p,
ul,
ol,
figure {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
::selection {
  background: var(--tint-lavender);
  color: var(--ink);
}
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* Utilities -------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.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;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: var(--r-md);
  background: var(--primary);
  color: var(--on-primary);
  font-size: 14px;
  font-weight: 500;
}
.skip-link:focus {
  top: 12px;
}

/* Type scale ------------------------------------------------------------- */
.t-display {
  font-size: 56px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -1px;
  text-wrap: balance;
}
.t-h1 {
  font-size: 48px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.5px;
  text-wrap: balance;
}
.t-subtitle {
  font-size: 18px;
  line-height: 1.5;
  color: var(--slate);
  text-wrap: pretty;
}
.t-subtitle a {
  color: var(--link);
}
.t-subtitle a:hover {
  color: var(--link-pressed);
}
@media (max-width: 1023px) {
  .t-display {
    font-size: 44px;
  }
  .t-h1 {
    font-size: 40px;
  }
}
@media (max-width: 479px) {
  .t-display {
    font-size: 34px;
    letter-spacing: -0.5px;
  }
  .t-h1 {
    font-size: 32px;
  }
  .t-subtitle {
    font-size: 17px;
  }
}

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}
.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}
.btn-lg {
  min-height: 48px;
  padding: 12px 22px;
  font-size: 16px;
}
.btn-block {
  width: 100%;
}
.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
}
.btn-primary:hover {
  background: var(--primary-pressed);
}
.btn-primary:active {
  background: var(--primary-deep);
}
.btn-primary:disabled {
  background: var(--hairline);
  color: var(--muted);
  cursor: not-allowed;
}
.btn-dark {
  background: var(--ink-deep);
  color: var(--on-dark);
}
.btn-dark:hover {
  background: var(--charcoal);
}
.btn-secondary {
  background: transparent;
  border-color: var(--hairline-strong);
  color: var(--ink);
}
.btn-secondary:hover {
  background: var(--surface);
}
.btn-secondary-dark {
  background: transparent;
  border-color: var(--on-dark-muted);
  color: var(--on-dark);
}
.btn-secondary-dark:hover {
  background: rgba(255, 255, 255, 0.08);
}
.btn-ghost {
  min-height: 36px;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--charcoal);
}
.btn-ghost:hover {
  background: var(--surface);
}

/* Badges & tags ---------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}
.badge-purple {
  background: var(--primary);
  color: var(--on-primary);
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}
.tag-purple {
  background: var(--tint-lavender);
  color: var(--purple-800);
}
.tag-orange {
  background: var(--tint-peach);
  color: var(--orange-deep);
}
.tag-green {
  background: var(--tint-mint);
  color: var(--green-text);
}
.tag-blue {
  background: var(--tint-sky);
  color: var(--link-pressed);
}
.tag-pink {
  background: var(--tint-rose);
  color: var(--pink-deep);
}
.tag-yellow {
  background: var(--tint-yellow);
  color: var(--brown);
}
.tag-gray {
  background: var(--tint-gray);
  color: var(--slate);
}
.tag-white {
  background: rgba(255, 255, 255, 0.7);
  color: var(--charcoal);
}

/* Header ----------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.4px;
  color: var(--ink);
}
.brand svg {
  width: 28px;
  height: 28px;
  flex: none;
  color: var(--primary);
  --mark-ring: var(--canvas);
}
.nav {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: space-between;
  margin-left: 32px;
}
.nav-links {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-links a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--charcoal);
  transition: background-color var(--dur) var(--ease);
}
.nav-links a:hover {
  background: var(--surface);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-md);
  background: var(--canvas);
  cursor: pointer;
}
.menu-toggle span {
  position: relative;
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
}
.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  transition: transform var(--dur) var(--ease);
}
.menu-toggle span::before {
  transform: translateY(-5px);
}
.menu-toggle span::after {
  transform: translateY(5px);
}
.menu-toggle[aria-expanded="true"] span {
  background: transparent;
}
.menu-toggle[aria-expanded="true"] span::before {
  transform: rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span::after {
  transform: rotate(-45deg);
}

@media (max-width: 1023px) {
  .menu-toggle {
    display: inline-flex;
  }
  .nav {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 8px var(--gutter) 24px;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    box-shadow: var(--shadow-4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition:
      opacity var(--dur) var(--ease),
      transform var(--dur) var(--ease),
      visibility var(--dur);
  }
  .site-header.is-open .nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav-links {
    flex-direction: column;
  }
  .nav-links a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--hairline-soft);
    border-radius: 0;
    font-size: 16px;
  }
  .nav-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .nav-actions .btn {
    min-height: 44px;
  }
}

/* Hero band -------------------------------------------------------------- */
.hero {
  --overlap: 220px;
  position: relative;
  padding-top: 120px;
  background:
    linear-gradient(var(--navy), var(--navy)) top / 100% calc(100% - var(--overlap)) no-repeat,
    var(--canvas);
  color: var(--on-dark);
  text-align: center;
  isolation: isolate;
}
.hero-deco {
  position: absolute;
  inset: 0 0 var(--overlap) 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.deco {
  position: absolute;
  top: 56px;
  width: 300px;
  height: auto;
  overflow: visible;
}
.deco-left {
  left: max(-20px, calc(50% - 690px));
}
.deco-right {
  right: max(-20px, calc(50% - 690px));
}
.hero-inner {
  max-width: 900px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 14px 4px 4px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.06);
  font-size: 14px;
  font-weight: 500;
}
.hero-title {
  margin-top: 28px;
  font-size: 80px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -2px;
  text-wrap: balance;
}
.squiggle {
  position: relative;
  white-space: nowrap;
}
.squiggle::after {
  content: "";
  position: absolute;
  left: -2%;
  right: 4%;
  bottom: -0.12em;
  height: 0.22em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 16' preserveAspectRatio='none'%3E%3Cpath d='M3 11c22-7 41-7 60-2s37 6 58 0 45-8 76-3' fill='none' stroke='%23f5d75e' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E")
    no-repeat center / 100% 100%;
  z-index: -1;
}
.hero-sub {
  max-width: 660px;
  margin: 24px auto 0;
  font-size: 18px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.76);
  text-wrap: pretty;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}
.hero-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin-top: 28px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--on-dark-muted);
}
.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-points svg {
  width: 16px;
  height: 16px;
  color: var(--yellow);
}

@media (max-width: 1279px) {
  .hero-title {
    font-size: 72px;
  }
}
@media (max-width: 1023px) {
  .hero {
    --overlap: 160px;
    padding-top: 96px;
  }
  .hero-title {
    font-size: 56px;
    letter-spacing: -1.5px;
  }
  .deco {
    width: 200px;
    opacity: 0.55;
  }
}
@media (max-width: 767px) {
  .hero {
    --overlap: 120px;
    padding-top: 72px;
  }
  .hero-title {
    font-size: 48px;
    letter-spacing: -1px;
  }
  .hero-sub {
    font-size: 17px;
  }
  .deco {
    top: 0;
    width: 120px;
    opacity: 0.45;
  }
  .deco-left {
    left: -44px;
  }
  .deco-right {
    right: -44px;
  }
  .deco .wire {
    display: none;
  }
}
@media (max-width: 479px) {
  .hero-title {
    font-size: 40px;
  }
  .hero-actions .btn {
    flex: 1 1 100%;
  }
}

/* Workspace mockup ------------------------------------------------------- */
.mockup-wrap {
  margin-top: 64px;
}
.mockup {
  max-width: 1120px;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background: var(--canvas);
  box-shadow: var(--shadow-3);
  color: var(--ink);
  text-align: left;
}
.mockup-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 44px;
  padding: 0 16px;
  border-bottom: 1px solid var(--hairline-soft);
  font-size: 13px;
  color: var(--steel);
}
.crumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  white-space: nowrap;
}
.crumbs b {
  font-weight: 500;
  color: var(--charcoal);
}
.crumb-icon {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: var(--r-xs);
  background: var(--tint-lavender);
  color: var(--primary);
  --mark-ring: var(--tint-lavender);
}
.crumb-icon svg {
  width: 13px;
  height: 13px;
}
.bar-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.avatars {
  display: flex;
}
.avatars i {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-left: -6px;
  border: 2px solid var(--canvas);
  border-radius: 50%;
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
  color: #fff;
}
.avatars i:first-child {
  margin-left: 0;
  background: var(--teal);
}
.avatars i:nth-child(2) {
  background: var(--primary);
}
.mockup-body {
  padding: 28px 36px 32px;
}
.page-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.page-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 10px;
  background: var(--tint-lavender);
  color: var(--primary);
  --mark-ring: var(--tint-lavender);
}
.page-icon svg {
  width: 28px;
  height: 28px;
}
.page-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: var(--charcoal);
}
.page-desc {
  margin-top: 2px;
  font-size: 14px;
  color: var(--steel);
}
.view-tabs {
  display: flex;
  gap: 4px;
  margin: 20px 0 16px;
  border-bottom: 1px solid var(--hairline-soft);
  font-size: 14px;
  font-weight: 500;
  color: var(--steel);
}
.view-tabs span {
  margin-bottom: -1px;
  padding: 8px 10px;
  border-bottom: 2px solid transparent;
}
.view-tabs .is-active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}
.board {
  display: grid;
  grid-template-columns: repeat(4, minmax(210px, 1fr));
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.col {
  padding: 8px;
  border-radius: var(--r-md);
  background: var(--surface-soft);
}
.col-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 4px 4px;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 500;
}
.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.status-gray {
  background: var(--tint-gray);
  color: var(--slate);
}
.status-blue {
  background: var(--tint-sky);
  color: var(--link-pressed);
}
.status-orange {
  background: var(--tint-peach);
  color: var(--orange-deep);
}
.status-green {
  background: var(--tint-mint);
  color: var(--green-text);
}
.count {
  font-size: 12px;
  color: var(--stone);
}
.task {
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  background: var(--canvas);
  box-shadow: var(--shadow-1);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--charcoal);
}
.task-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}
.task-meta .tag {
  padding: 1px 6px;
  font-size: 12px;
  font-weight: 500;
}
.task-meta small {
  font-size: 12px;
  color: var(--steel);
}
.task.is-done p {
  color: var(--steel);
}

/* Stagger the board in once it is revealed */
.js .mockup-wrap.reveal .task {
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.4s var(--ease),
    transform 0.4s var(--ease);
}
.js .mockup-wrap.reveal.is-visible .task {
  opacity: 1;
  transform: none;
}
.js .mockup-wrap .col:nth-child(1) .task {
  transition-delay: 0.15s;
}
.js .mockup-wrap .col:nth-child(2) .task {
  transition-delay: 0.25s;
}
.js .mockup-wrap .col:nth-child(3) .task {
  transition-delay: 0.35s;
}
.js .mockup-wrap .col:nth-child(4) .task {
  transition-delay: 0.45s;
}

@media (max-width: 767px) {
  .mockup-wrap {
    margin-top: 48px;
  }
  .mockup-body {
    padding: 20px 16px 20px;
  }
  .page-title {
    font-size: 22px;
  }
  .bar-meta span {
    display: none;
  }
  .board {
    grid-template-columns: repeat(4, 220px);
    margin-right: -16px;
    padding-right: 16px;
  }
}

/* Sections --------------------------------------------------------------- */
.section {
  padding-bottom: var(--section);
}
.section-tight-top {
  padding-top: 72px;
}
.section-head {
  max-width: 760px;
  margin-bottom: 48px;
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}
.section-head .tag {
  margin-bottom: 16px;
}
.section-head .t-subtitle {
  margin-top: 16px;
}
@media (max-width: 767px) {
  :root {
    --section: 64px;
  }
  .section-head {
    margin-bottom: 32px;
  }
}

/* Services: pastel feature cards ---------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.feature {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border-radius: var(--r-lg);
  color: var(--charcoal);
}
.feature-sky {
  background: var(--tint-sky);
  --accent: var(--link-pressed);
}
.feature-lavender {
  background: var(--tint-lavender);
  --accent: var(--primary);
}
.feature-peach {
  background: var(--tint-peach);
  --accent: var(--orange-deep);
}
.feature-mint {
  background: var(--tint-mint);
  --accent: var(--green-text);
}
.feature-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: var(--canvas);
  color: var(--accent);
  box-shadow: var(--shadow-1);
}
.feature-icon svg {
  width: 22px;
  height: 22px;
}
.feature h3 {
  margin-top: 20px;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.3px;
  color: var(--ink);
}
.feature > p {
  margin-top: 8px;
  color: var(--slate);
}
.ticks {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  padding: 0;
  list-style: none;
  font-size: 15px;
  font-weight: 500;
}
.ticks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.ticks svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 3px;
  color: var(--accent, var(--primary));
}
.feature > .ticks {
  margin-bottom: 28px;
}
.mini {
  margin-top: auto;
  padding: 16px;
  border-radius: var(--r-lg);
  background: var(--canvas);
  box-shadow: var(--shadow-2);
  font-size: 13px;
  color: var(--charcoal);
}
@media (max-width: 899px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 479px) {
  .feature {
    padding: 24px;
  }
  .feature h3 {
    font-size: 24px;
  }
}

/* Mini: API log */
.mini-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px 10px;
  border-bottom: 1px solid var(--hairline-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--charcoal);
}
.mini-head small {
  margin-left: auto;
  font-family: var(--font);
  font-size: 12px;
  color: var(--steel);
}
.live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px var(--tint-mint);
}
.api-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  font-family: var(--font-mono);
  font-size: 12.5px;
}
.api-row + .api-row,
.mini-head + .api-row {
  border-top: 1px solid var(--hairline-soft);
}
.mini-head + .api-row {
  border-top: 0;
}
.api-row .path {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.api-row .code {
  color: var(--green-text);
}
.api-row .ms {
  color: var(--steel);
  text-align: right;
}
.method {
  padding: 2px 6px;
  border-radius: var(--r-xs);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}
.m-get {
  background: var(--tint-mint);
  color: var(--green-text);
}
.m-post {
  background: var(--tint-sky);
  color: var(--link-pressed);
}
.m-patch {
  background: var(--tint-peach);
  color: var(--orange-deep);
}

/* Mini: ask your data */
.ask {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  background: var(--surface-soft);
  color: var(--charcoal);
}
.ask svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--purple);
}
.answer {
  margin-top: 12px;
  padding: 0 4px;
  color: var(--slate);
}
.bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 76px;
  margin-top: 12px;
  padding: 0 4px;
}
.bars span {
  position: relative;
  flex: 1;
  height: var(--h);
  border-radius: 4px 4px 2px 2px;
  background: var(--purple-300);
}
.bars span.hi {
  background: var(--primary);
}
.bar-labels {
  display: flex;
  gap: 10px;
  margin-top: 6px;
  padding: 0 4px;
  font-size: 11px;
  color: var(--steel);
}
.bar-labels span {
  flex: 1;
  text-align: center;
}

/* Mini: chat */
.channels {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}
.bubble {
  max-width: 82%;
  padding: 8px 12px;
  border-radius: 12px 12px 12px 4px;
  background: var(--surface);
  line-height: 1.45;
}
.bubble + .bubble {
  margin-top: 8px;
}
.bubble.out {
  margin-left: auto;
  border-radius: 12px 12px 4px 12px;
  background: var(--primary);
  color: var(--on-primary);
}
.bubble small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--steel);
}

/* Mini: service health */
.svc {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
}
.svc + .svc {
  border-top: 1px solid var(--hairline-soft);
}
.svc .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px var(--tint-mint);
}
.svc .name {
  font-family: var(--font-mono);
  font-size: 12.5px;
}
.svc .meta {
  font-size: 12px;
  color: var(--steel);
}
.deploy {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: var(--r-md);
  background: var(--tint-mint);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--green-text);
}
.deploy svg {
  width: 14px;
  height: 14px;
}

/* Approach: bold yellow banner ------------------------------------------ */
.banner-yellow {
  padding: 56px;
  border-radius: var(--r-xl);
  background: var(--tint-yellow-bold);
  color: var(--charcoal);
}
.banner-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
}
.banner-head > div {
  max-width: 640px;
}
.banner-head .tag {
  margin-bottom: 16px;
}
.banner-head h2 {
  color: var(--ink);
}
.banner-head .t-subtitle {
  margin-top: 12px;
  color: var(--charcoal);
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}
.step {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--r-lg);
  background: var(--canvas);
}
.step-num {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink);
  font-size: 13px;
  font-weight: 600;
  color: var(--on-dark);
}
.step h3 {
  margin-top: 16px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}
.step p {
  margin: 6px 0 16px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--slate);
}
.step .tag {
  align-self: flex-start;
  margin-top: auto;
}
@media (max-width: 1023px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .banner-yellow {
    padding: 40px;
  }
}
@media (max-width: 599px) {
  .steps {
    grid-template-columns: 1fr;
  }
  .banner-yellow {
    padding: 28px 20px;
  }
}

/* Engagement: plan cards ------------------------------------------------- */
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
.plan {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background: var(--canvas);
}
.plan-featured {
  padding: 31px;
  border: 2px solid var(--primary);
  background: var(--surface);
}
.plan-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.plan-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: var(--tint);
  color: var(--accent);
}
.plan-icon svg {
  width: 22px;
  height: 22px;
}
.plan h3 {
  margin-top: 20px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}
.plan > p {
  margin-top: 8px;
  color: var(--slate);
}
.plan .best {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 13px;
  color: var(--steel);
}
.plan .ticks {
  margin: 24px 0 28px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  font-weight: 400;
  color: var(--charcoal);
}
.plan .ticks svg {
  color: var(--primary);
}
.plan .btn {
  margin-top: auto;
}
@media (max-width: 1023px) {
  .plans {
    grid-template-columns: 1fr;
    max-width: 640px;
    margin-inline: auto;
  }
}

/* Principles ------------------------------------------------------------- */
.principles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.principle {
  padding: 24px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background: var(--canvas);
}
.principle .plan-icon {
  margin-bottom: 18px;
}
.principle h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}
.principle p {
  margin-top: 6px;
  font-size: 15px;
  color: var(--slate);
}
@media (max-width: 1023px) {
  .principles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 599px) {
  .principles {
    grid-template-columns: 1fr;
  }
}

.tint-sky {
  --tint: var(--tint-sky);
  --accent: var(--link-pressed);
}
.tint-lavender {
  --tint: var(--tint-lavender);
  --accent: var(--primary);
}
.tint-peach {
  --tint: var(--tint-peach);
  --accent: var(--orange-deep);
}
.tint-mint {
  --tint: var(--tint-mint);
  --accent: var(--green-text);
}
.tint-rose {
  --tint: var(--tint-rose);
  --accent: var(--pink-deep);
}
.tint-yellow {
  --tint: var(--tint-yellow);
  --accent: var(--brown);
}

/* Stack: database table -------------------------------------------------- */
.db-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--steel);
}
.db-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--charcoal);
}
.db-title svg {
  width: 18px;
  height: 18px;
  color: var(--steel);
}
.db {
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
}
.db table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.db th {
  padding: 10px 20px;
  border-bottom: 1px solid var(--hairline);
  background: var(--surface-soft);
  font-size: 13px;
  font-weight: 500;
  color: var(--steel);
  text-align: left;
}
.db th span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.db th svg {
  width: 14px;
  height: 14px;
}
.db td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--hairline-soft);
  vertical-align: top;
}
.db tr:last-child td {
  border-bottom: 0;
}
.db td:first-child {
  width: 260px;
  font-size: 15px;
  font-weight: 500;
  color: var(--charcoal);
}
.db td:first-child span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.db td:first-child svg {
  width: 18px;
  height: 18px;
  color: var(--steel);
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tags .tag {
  font-weight: 500;
}
@media (max-width: 699px) {
  .db thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
  .db table,
  .db tbody,
  .db tr,
  .db td {
    display: block;
    width: auto;
  }
  .db tr {
    padding: 16px;
    border-bottom: 1px solid var(--hairline-soft);
  }
  .db tr:last-child {
    border-bottom: 0;
  }
  .db td {
    padding: 0;
    border: 0;
  }
  .db td:first-child {
    width: auto;
    margin-bottom: 10px;
  }
}

/* FAQ -------------------------------------------------------------------- */
.faq {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 64px;
  align-items: start;
}
.faq .section-head {
  margin-bottom: 0;
}
.faq-list {
  border-top: 1px solid var(--hairline);
}
.faq-item {
  border-bottom: 1px solid var(--hairline);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  list-style: none;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--steel);
  transition: transform var(--dur) var(--ease);
}
.faq-item[open] summary svg {
  transform: rotate(45deg);
}
.faq-item p {
  max-width: 680px;
  padding-bottom: 24px;
  color: var(--slate);
}
.faq-item p a {
  color: var(--link);
}
.faq-item p a:hover {
  color: var(--link-pressed);
}
@media (max-width: 899px) {
  .faq {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .faq-item summary {
    font-size: 17px;
    padding: 20px 0;
  }
}

/* Contact: light CTA banner --------------------------------------------- */
.cta-banner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: start;
  padding: 64px;
  border-radius: var(--r-xl);
  background: var(--surface);
}
.cta-banner .tag {
  margin-bottom: 16px;
}
.cta-banner .t-subtitle {
  margin-top: 16px;
}
.contact-list {
  display: grid;
  gap: 20px;
  margin-top: 36px;
  padding: 0;
  list-style: none;
}
.contact-list li {
  display: flex;
  gap: 14px;
}
.contact-list .plan-icon {
  flex: none;
  width: 36px;
  height: 36px;
}
.contact-list .plan-icon svg {
  width: 18px;
  height: 18px;
}
.contact-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--steel);
}
.contact-email {
  font-size: 18px;
  font-weight: 600;
  color: var(--link);
}
.contact-email:hover {
  color: var(--link-pressed);
}
.contact-list address {
  font-size: 14px;
  font-style: normal;
  line-height: 1.5;
  color: var(--slate);
}

.form {
  padding: 32px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background: var(--canvas);
  box-shadow: var(--shadow-2);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 16px;
}
.field {
  display: grid;
  gap: 6px;
}
.field-full {
  grid-column: 1 / -1;
}
.field label {
  font-size: 14px;
  font-weight: 500;
  color: var(--charcoal);
}
.field label .opt {
  font-weight: 400;
  color: var(--steel);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 14px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-md);
  background: var(--canvas);
  font-size: 16px;
  line-height: 1.3;
  color: var(--ink);
  transition:
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}
.field textarea {
  min-height: 132px;
  line-height: 1.55;
  resize: vertical;
}
.field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23787671' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
}
.field ::placeholder {
  color: var(--muted);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}
.field input:user-invalid,
.field textarea:user-invalid {
  border-color: var(--error);
}
.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
}
.form-note {
  flex: 1 1 220px;
  font-size: 13px;
  color: var(--steel);
}
.form-note a {
  color: var(--link);
}
.form-status {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  font-size: 14px;
}
.form-status:empty {
  display: none;
}
.form-status.is-success {
  background: var(--tint-mint);
  color: var(--green-text);
}
.form-status.is-error {
  background: #fdecec;
  color: #a51d1d;
}
.form-status a {
  font-weight: 600;
  text-decoration: underline;
}
@media (max-width: 1023px) {
  .cta-banner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 48px;
  }
}
@media (max-width: 599px) {
  .cta-banner {
    padding: 28px 16px;
    margin-inline: calc(var(--gutter) * -1 + 8px);
  }
  .form {
    padding: 20px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-foot .btn {
    width: 100%;
  }
}

/* Footer ----------------------------------------------------------------- */
.site-footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--hairline);
  background: var(--canvas);
  font-size: 14px;
  color: var(--charcoal);
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.footer-about p {
  max-width: 320px;
  margin-top: 14px;
  color: var(--steel);
}
.footer-col h2 {
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-col a {
  display: inline-block;
  padding: 4px 0;
  color: var(--steel);
  transition: color var(--dur) var(--ease);
}
.footer-col a:hover {
  color: var(--ink);
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--steel);
}
.footer-legal p {
  max-width: 820px;
}
@media (max-width: 767px) {
  .footer-top {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .footer-about {
    grid-column: 1 / -1;
  }
}
@media (max-width: 479px) {
  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Inner pages (privacy, 404) -------------------------------------------- */
.page-band {
  --overlap: 0px;
  position: relative;
  padding: 96px 0 72px;
  background: var(--navy);
  color: var(--on-dark);
  isolation: isolate;
  overflow: hidden;
}
.page-band .tag {
  margin-bottom: 16px;
}
.page-band h1 {
  font-size: 56px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -1px;
}
.page-band .meta {
  margin-top: 12px;
  font-size: 14px;
  color: var(--on-dark-muted);
}
.page-band .deco {
  top: 24px;
  opacity: 0.7;
}
.prose {
  max-width: 760px;
  padding-block: 64px var(--section);
  font-size: 16px;
  line-height: 1.7;
  color: var(--charcoal);
}
.prose h2 {
  margin-top: 40px;
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}
.prose p + p,
.prose p + ul,
.prose ul + p {
  margin-top: 14px;
}
.prose ul {
  padding-left: 22px;
}
.prose li + li {
  margin-top: 6px;
}
.prose strong {
  font-weight: 600;
  color: var(--ink);
}
.prose a {
  color: var(--link);
}
.prose a:hover {
  color: var(--link-pressed);
}
.not-found {
  display: grid;
  place-items: center;
  min-height: calc(100vh - var(--nav-h));
  padding: 80px 0;
  text-align: center;
}
.not-found h1 {
  font-size: 72px;
  letter-spacing: -2px;
}
.not-found p {
  max-width: 520px;
  margin: 20px auto 0;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.76);
}
@media (max-width: 767px) {
  .page-band {
    padding: 64px 0 48px;
  }
  .page-band h1 {
    font-size: 40px;
  }
  .not-found h1 {
    font-size: 48px;
    letter-spacing: -1px;
  }
}

/* Reveal on scroll (only when JS is running) ----------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.5s var(--ease),
    transform 0.5s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
/* Safety net: if main.js never runs, show everything anyway. */
.js:not(.reveal-ready) .reveal,
.js:not(.reveal-ready) .reveal .task {
  animation: reveal-fallback 0.4s var(--ease) 2.5s forwards;
}
@keyframes reveal-fallback {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal,
  .js .reveal .task {
    opacity: 1 !important;
    transform: none !important;
  }
}
