/* ==========================================================================
   vxtoolkit.com
   Light theme only. Sora carries every heading and the brand; Inter carries
   body copy. Colour does one job — the four catalogue areas each own a tint,
   used on icon tiles and badges, so a page of ninety features stays readable
   without turning into a fruit salad.
   ========================================================================== */

:root {
  --ground:      #FBFCFE;
  --surface:     #FFFFFF;
  --sunk:        #F5F7FC;

  --ink:         #111C44;
  --body:        #4A5568;
  --muted:       #7A879F;
  --line:        #E8EDF7;
  --hairline:    #F1F4FA;

  --accent:      #2B4ACB;
  --accent-deep: #1E3AA8;
  --on-accent:   #FFFFFF;

  /* Category tints: soft fill + a legible ink for the glyph. */
  --blue-bg:   #EEF3FF;  --blue-fg:   #2B4ACB;
  --green-bg:  #EAF8F1;  --green-fg:  #157F5B;
  --amber-bg:  #FDF1E7;  --amber-fg:  #B4632A;
  --violet-bg: #F3EEFC;  --violet-fg: #6D4AAF;

  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --display: 'Sora', var(--sans);

  --shell: 1180px;
  --r-sm: 9px;
  --r-md: 15px;
  --r-lg: 20px;

  --sh-sm: 0 3px 14px -8px rgba(17, 28, 68, .20);
  --sh-md: 0 14px 34px -20px rgba(17, 28, 68, .32), 0 1px 2px rgba(17, 28, 68, .04);
  --sh-lg: 0 34px 70px -34px rgba(17, 28, 68, .38), 0 2px 6px rgba(17, 28, 68, .05);
  --sh-cta: 0 8px 20px -8px rgba(43, 74, 203, .6);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--body);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.028em;
  text-wrap: balance;
}
p { margin: 0; }
img, svg { display: block; max-width: 100%; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-deep); }

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

.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 26px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--accent); color: var(--on-accent);
  padding: 12px 18px; font-weight: 600; border-radius: 0 0 var(--r-sm) 0;
}
.skip:focus { left: 0; color: var(--on-accent); }

/* Lucide icons inherit colour and scale from their container. */
.lucide { width: 1em; height: 1em; stroke-width: 2; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-weight: 600; font-size: 14.5px; line-height: 1;
  padding: 12px 21px; border-radius: var(--r-sm);
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.btn .lucide { font-size: 16px; }
.btn--primary { background: var(--accent); color: var(--on-accent); box-shadow: var(--sh-cta); }
.btn--primary:hover { background: var(--accent-deep); color: var(--on-accent); transform: translateY(-1px); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: #DFE5F0; }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--lg { padding: 14px 26px; font-size: 15.5px; }
.btn--block { width: 100%; }

.quiet { color: var(--body); font-weight: 500; font-size: 14.5px; }
.quiet:hover { color: var(--ink); }

.arrow { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.arrow .lucide { transition: transform .18s ease; }
.arrow:hover .lucide { transform: translateX(3px); }

/* ---------- announcement tape ---------- */
.tape {
  background: var(--ink);
  color: #B9C6E8;
  font-size: 13.2px;
}
.tape__in {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 9px 26px; text-align: center; flex-wrap: wrap;
}
.tape a { color: #fff; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.tape a .lucide { font-size: 14px; transition: transform .18s ease; }
.tape a:hover { color: #fff; }
.tape a:hover .lucide { transform: translateX(3px); }

/* ---------- header ---------- */
.head {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.head.is-stuck { border-bottom-color: var(--line); background: color-mix(in srgb, var(--ground) 97%, transparent); }
.head__in { display: flex; align-items: center; gap: 24px; height: 74px; }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 800; font-size: 18.5px;
  color: var(--ink); letter-spacing: -.02em;
}
.brand:hover { color: var(--ink); }
/* Three tiles sit back in `color`; the fourth breaks the grid in the brand
   gradient. Setting `color` is all a dark surface needs. */
.mark { width: 32px; height: 32px; flex: none; color: #AEC0E4; }

.nav { display: flex; align-items: center; gap: 24px; margin-left: 6px; }
.nav__link { color: #67748E; font-size: 14.5px; font-weight: 500; position: relative; padding: 4px 0; }
.nav__link:hover { color: var(--ink); }
.nav__link[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav__link[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; border-radius: 2px; background: var(--accent);
}

.head__cta { display: flex; align-items: center; gap: 12px; margin-left: auto; }

/* Flex, not grid: in a grid the three rows stretch to fill the 40px button and
   `gap` sits between those tall rows, so the bars end up ~12px apart instead of
   4px and the icon reads as a stretched equals sign. */
.burger {
  display: none; width: 40px; height: 40px; border-radius: var(--r-sm);
  background: var(--surface); border: 1px solid var(--line);
  cursor: pointer; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.burger span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ---------- mobile drawer ---------- */
.scrim { position: fixed; inset: 0; background: rgba(17, 28, 68, .38); z-index: 190; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(340px, 86vw); z-index: 200;
  background: var(--surface); border-left: 1px solid var(--line);
  box-shadow: var(--sh-lg);
  display: flex; flex-direction: column; padding: 20px 22px 24px;
}
.drawer[hidden], .scrim[hidden] { display: none; }
.drawer__top { display: flex; align-items: center; justify-content: space-between; }
.drawer__close {
  width: 36px; height: 36px; border-radius: var(--r-sm); display: grid; place-items: center;
  background: var(--sunk); border: 1px solid var(--line); color: var(--ink); cursor: pointer; font-size: 16px;
}
.drawer__links { display: flex; flex-direction: column; margin-top: 26px; }
.drawer__links a {
  padding: 13px 0; border-bottom: 1px solid var(--hairline);
  color: var(--ink); font-weight: 600; font-size: 16px;
}
.drawer__foot { margin-top: auto; padding-top: 22px; }
.drawer__note {
  margin-top: 12px; text-align: center;
  font-size: 12.6px; color: var(--muted);
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.drawer__note .lucide { font-size: 14px; color: var(--accent); }

/* ---------- sections ---------- */
.sec { padding: 84px 0; }
.sec--tight { padding: 62px 0; }
.sec--sunk { background: var(--sunk); border-block: 1px solid var(--line); }
.sec--top-flush { padding-top: 30px; }
.sec--bottom-flush { padding-bottom: 30px; }

.sec__head { max-width: 640px; margin-bottom: 38px; }
.sec__head--center { margin-inline: auto; text-align: center; }
.sec__head h2 { font-size: 38px; }
.sec__head p { margin-top: 14px; font-size: 17.5px; color: #5A6784; }

.eyebrow {
  color: var(--accent); font-weight: 700; font-size: 13px;
  letter-spacing: .09em; text-transform: uppercase;
}

/* ---------- hero ---------- */
.hero {
  position: relative; text-align: center;
  padding: 76px 0 66px;
  overflow: hidden;
}
/* Atmosphere without a stock gradient: a soft brand glow over a faint grid,
   both masked so they fade before the content below. */
.hero::before {
  content: ""; position: absolute; z-index: 0; inset: -20% 50% auto auto;
  width: 1100px; height: 620px; transform: translateX(50%);
  background: radial-gradient(60% 60% at 50% 40%, rgba(91, 141, 239, .20), transparent 70%);
  filter: blur(10px); pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(17, 28, 68, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 28, 68, .035) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent 78%);
}
.hero > * { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(38px, 5.2vw, 62px); margin-top: 16px; letter-spacing: -.032em; }
.hero__sub { margin: 20px auto 0; font-size: 19px; color: #5A6784; max-width: 660px; }
.hero__btns { margin-top: 30px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero__note { margin-top: 16px; font-size: 13.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 7px; }
.hero__note .lucide { font-size: 15px; }

/* ---------- cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 24px; box-shadow: var(--sh-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
a.card:hover { transform: translateY(-2px); box-shadow: var(--sh-md); border-color: #D8E1F3; }

.grid { display: grid; gap: 18px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.tile {
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  display: grid; place-items: center; font-size: 18px; margin-bottom: 13px;
}
.tile--lg { width: 48px; height: 48px; border-radius: 13px; font-size: 22px; }
.tile--blue   { background: var(--blue-bg);   color: var(--blue-fg); }
.tile--green  { background: var(--green-bg);  color: var(--green-fg); }
.tile--amber  { background: var(--amber-bg);  color: var(--amber-fg); }
.tile--violet { background: var(--violet-bg); color: var(--violet-fg); }

.cat-card h3 { font-size: 16.5px; margin-bottom: 6px; }
.cat-card p { font-size: 13.4px; color: var(--muted); line-height: 1.55; }
.cat-card__count {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 13px; font-size: 12.4px; font-weight: 700; color: var(--accent);
}
.cat-card__count .lucide { font-size: 14px; transition: transform .18s ease; }
a.cat-card:hover .cat-card__count .lucide { transform: translateX(3px); }

.feature-card h3 { font-size: 17px; margin-bottom: 7px; }
.feature-card p { font-size: 14.2px; color: #66748C; line-height: 1.58; }
.feature-card .badge { margin-top: 14px; }

.badge {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; padding: 4px 9px; border-radius: 6px;
  background: var(--sunk); color: var(--muted); border: 1px solid var(--line);
}
.badge--function { background: var(--blue-bg); color: var(--blue-fg); border-color: transparent; }
.badge--widget { background: var(--violet-bg); color: var(--violet-fg); border-color: transparent; }
.badge--field { background: var(--amber-bg); color: var(--amber-fg); border-color: transparent; }

/* ---------- stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stat { text-align: center; padding: 26px 18px; }
.stat b {
  display: block; font-family: var(--display); font-size: 46px; font-weight: 800;
  color: var(--ink); line-height: 1; letter-spacing: -.04em;
}
.stat span { display: block; margin-top: 9px; font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: .07em; text-transform: uppercase; }
.stat p { margin-top: 8px; font-size: 13.8px; color: #66748C; }

/* ---------- pill strip ---------- */
.strip { display: flex; gap: 9px; flex-wrap: wrap; justify-content: center; }
.pill {
  background: var(--surface); border: 1px solid var(--line); border-radius: 99px;
  padding: 7px 15px; font-size: 13px; color: #5A6784; font-weight: 500;
}
.pill--more { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
.pill--more:hover { background: #1B2A5E; color: #fff; }

/* ---------- features page ---------- */
.filters { position: sticky; top: 74px; z-index: 40; background: var(--ground); padding: 18px 0 16px; border-bottom: 1px solid var(--line); }
.filters__row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.filters__row + .filters__row { margin-top: 11px; }

.search {
  position: relative; flex: 1 1 260px; max-width: 340px;
}
.search .lucide { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); font-size: 16px; color: var(--muted); pointer-events: none; }
.search input {
  width: 100%; font-family: inherit; font-size: 14.5px; color: var(--ink);
  padding: 11px 14px 11px 38px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--surface);
}
.search input::placeholder { color: #9AA6BC; }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(43, 74, 203, .12); }

.chip {
  font-family: inherit; font-size: 13.4px; font-weight: 500; color: #5A6784;
  background: var(--surface); border: 1px solid var(--line); border-radius: 99px;
  padding: 8px 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.chip:hover { border-color: #C9D5EE; color: var(--ink); }
.chip.is-on { background: var(--blue-bg); border-color: transparent; color: var(--accent); font-weight: 600; }
.chip__n { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.chip.is-on .chip__n { color: var(--accent); }

.result-count { font-size: 13.4px; color: var(--muted); margin: 0 0 14px; }

/* Two columns from tablet up: 121 single-file rows is a long scroll, and at
   desktop width a one-column row leaves a canyon between text and badge. */
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
.row {
  display: flex; align-items: flex-start; gap: 15px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 17px 19px; scroll-margin-top: 190px;
}
.row .tile { margin-bottom: 0; }
.row__text { min-width: 0; flex: 1; }
.row__text h3 { font-size: 15.6px; margin-bottom: 3px; }
.row__text p { font-size: 13.8px; color: #6B7893; line-height: 1.55; }
/* In the listing the type badge repeats 121 times, so it drops the category
   fill and stays an outline — the icon tint already carries the colour. */
.row .badge { flex: none; margin-top: 2px; background: none; border-color: var(--line); color: var(--muted); }
.row[hidden] { display: none; }
.row:target { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(43, 74, 203, .12); }

.empty { text-align: center; padding: 50px 20px; color: var(--muted); font-size: 15px; }
.empty[hidden] { display: none; }

/* ---------- post fields page ---------- */
.field-block {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 26px; box-shadow: var(--sh-sm);
}
.field-block + .field-block { margin-top: 14px; }
.field-block .tile { margin-bottom: 0; }
.field-block h3 { font-size: 19px; margin-bottom: 7px; }
.field-block p { font-size: 15px; color: #66748C; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.plan { display: flex; flex-direction: column; position: relative; }
.plan h3 { font-size: 16px; }
.plan__price { display: flex; align-items: baseline; gap: 7px; margin: 14px 0 4px; }
.plan__price b { font-family: var(--display); font-size: 40px; font-weight: 800; color: var(--ink); letter-spacing: -.04em; line-height: 1; }
.plan__price span { font-size: 13.5px; color: var(--muted); font-weight: 500; }
.plan__note { font-size: 13.4px; color: var(--muted); }
.plan ul { list-style: none; margin: 18px 0 22px; padding: 0; display: grid; gap: 9px; }
.plan li { display: flex; gap: 9px; align-items: flex-start; font-size: 14.2px; color: #5A6784; }
.plan li .lucide { font-size: 16px; color: var(--green-fg); flex: none; margin-top: 3px; }
.plan .btn { margin-top: auto; }
.plan--featured { border-color: var(--accent); box-shadow: var(--sh-md); }
.plan__tag {
  position: absolute; top: -11px; left: 24px;
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px;
}

.faq { display: grid; gap: 12px; max-width: 780px; margin: 0 auto; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 22px;
}
.faq summary {
  cursor: pointer; font-weight: 600; color: var(--ink); font-size: 15.5px;
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 9px; height: 9px; flex: none;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translate(-2px, -2px); transition: transform .18s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq p { margin-top: 11px; font-size: 14.6px; color: #66748C; }

/* ---------- closing CTA ---------- */
.cta-band {
  background: var(--ink); border-radius: var(--r-lg); padding: 54px 40px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: -60% 40% auto auto; width: 640px; height: 460px;
  background: radial-gradient(circle, rgba(91, 141, 239, .40), transparent 66%); filter: blur(14px);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; font-size: 33px; }
.cta-band p { color: #B9C6E8; margin: 13px auto 0; max-width: 520px; font-size: 16.5px; }
.cta-band .btn { margin-top: 26px; }
.cta-band .btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
.cta-band .btn--ghost:hover { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.5); }
.cta-band__btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- footer ---------- */
.foot { background: var(--surface); border-top: 1px solid var(--line); padding: 56px 0 26px; margin-top: 10px; }
.foot__in { display: grid; grid-template-columns: 1.15fr 2fr; gap: 44px; }
.foot__brand p { margin-top: 14px; font-size: 14.2px; color: var(--muted); max-width: 330px; }
.foot__req { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; }
.foot__req .lucide { font-size: 15px; color: var(--accent); }
.foot__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.foot__cols h4 { font-size: 12.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink); margin-bottom: 13px; }
.foot__cols a { display: block; font-size: 14.2px; color: #64748B; padding: 5px 0; font-weight: 500; }
.foot__cols a:hover { color: var(--accent); }
.foot__base {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 42px; padding-top: 20px; border-top: 1px solid var(--hairline);
  font-size: 12.8px; color: var(--muted);
}

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav, .head__cta .quiet, .head__cta .btn { display: none; }
  .burger { display: flex; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .foot__in { grid-template-columns: 1fr; gap: 34px; }
  .sec { padding: 66px 0; }
  .sec__head h2 { font-size: 32px; }
  .filters { top: 0; }
  .rows { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 15.6px; }
  .grid--4, .grid--3, .grid--2, .plans { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 4px; }
  .stat { padding: 18px 12px; }
  .stat b { font-size: 40px; }
  .tape__in { font-size: 12.4px; gap: 8px; }
  .hero { padding: 54px 0 46px; }
  .hero__btns .btn { width: 100%; }
  .row { padding: 15px 16px; gap: 13px; }
  .row .badge { display: none; }
  .field-block { flex-direction: column; gap: 15px; padding: 22px; }
  .cta-band { padding: 40px 24px; }
  .cta-band h2 { font-size: 27px; }
  .foot__cols { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition-duration: .01ms !important; }
}
