/* Styles for the inner pages (privacy, terms, delete account, API, 404), which scripts/website/build-pages.mts makes. */
/* Vettora website: deep night navy, one Vettora blue, light falling from the top. */
@font-face {
  font-family: "Inter Tight";
  src: url("../fonts/inter-tight-300.woff2") format("woff2");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Inter Tight";
  src: url("../fonts/inter-tight-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Inter Tight";
  src: url("../fonts/inter-tight-500.woff2") format("woff2");
  font-weight: 500 700;
  font-display: swap;
}

:root {
  --bg: #03040b;
  --navy: #060a1d;
  --ink: #f2f5ff;
  --soft: #aab4d8;
  --faint: #6f7a9e;
  --line: rgba(132, 160, 255, 0.14);
  --line2: rgba(132, 160, 255, 0.26);
  --blue: #2f6bff;
  --blue2: #5b8cff;
  --pale: #bcd0ff;
  --ok: #5fe3a6;
  --warn: #ffb85c;
  --card: linear-gradient(180deg, rgba(22, 33, 78, 0.5), rgba(8, 12, 32, 0.72));
  --glass: rgba(12, 18, 44, 0.55);
  --r: 20px;
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
  --font:
    "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
    "Noto Sans", "Noto Sans SC", "Noto Sans JP", "Noto Nastaliq Urdu",
    sans-serif;
  --wrap: 1180px;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html {
  background: var(--bg);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  color: var(--ink);
  font: 400 16px/1.6 var(--font);
  overflow-x: hidden;
  background: var(--bg);
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
h1,
h2 {
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
p {
  margin: 0;
}

/* ---- Nav ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition:
    background 0.35s,
    border-color 0.35s,
    backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
  padding-top: env(safe-area-inset-top, 0px);
}
.nav.solid {
  background: rgba(4, 6, 18, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.16em;
  font-size: 14px;
}
.brand img {
  width: 30px;
  height: 30px;
}
.links {
  display: flex;
  gap: 28px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
}
.links a {
  color: var(--soft);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.links a:hover,
.links a[aria-current="page"] {
  color: var(--ink);
}
.menu {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line2);
  color: var(--ink);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  cursor: pointer;
}
.menu svg {
  width: 18px;
  height: 18px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  font: 500 14.5px/1 var(--font);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    background 0.25s,
    border-color 0.25s;
  white-space: nowrap;
}
.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}
.btn-blue {
  background: linear-gradient(180deg, #3a74ff, #2457e6);
  color: #fff;
  border-color: rgba(160, 190, 255, 0.45);
  box-shadow:
    0 10px 30px -10px rgba(47, 107, 255, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn-blue:hover {
  transform: translateY(-2px);
  box-shadow:
    0 16px 36px -10px rgba(47, 107, 255, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  border-color: var(--line2);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}
.btn[aria-disabled="true"] {
  opacity: 0.62;
  cursor: default;
  transform: none;
  box-shadow: none;
}
.btn-sm {
  min-height: 38px;
  padding: 0 14px;
  font-size: 13.5px;
}

/* ---- Light from the top ---- */
.hero {
  position: relative;
  padding: 150px 0 0;
  overflow: hidden;
  isolation: isolate;
}
.beams {
  position: absolute;
  inset: 0 0 auto 0;
  height: 900px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(
      48% 62% at 50% -8%,
      rgba(64, 112, 255, 0.85),
      rgba(33, 70, 210, 0.45) 38%,
      rgba(10, 20, 80, 0.15) 64%,
      transparent 78%
    ),
    radial-gradient(
      30% 40% at 18% 10%,
      rgba(40, 80, 230, 0.25),
      transparent 70%
    ),
    radial-gradient(
      30% 40% at 82% 10%,
      rgba(40, 80, 230, 0.22),
      transparent 70%
    );
}
.beams::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0 46px,
    rgba(170, 195, 255, 0.05) 46px 48px,
    rgba(255, 255, 255, 0) 48px 92px
  );
  -webkit-mask: radial-gradient(55% 70% at 50% 0%, #000 30%, transparent 80%);
  mask: radial-gradient(55% 70% at 50% 0%, #000 30%, transparent 80%);
}
.kicker {
  color: var(--blue2);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
}
.hero h1 {
  font-size: clamp(36px, 5.6vw, 64px);
  line-height: 1.06;
  max-width: 16ch;
}
.cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 6px;
}

/* ---- Product window ---- */
.window {
  border-radius: 16px 16px 0 0;
  border: 1px solid var(--line2);
  border-bottom: 0;
  background: linear-gradient(180deg, #0b1130, #070b20 60%, #05081a);
  box-shadow: 0 -10px 60px -20px rgba(70, 120, 255, 0.55);
  overflow: hidden;
}
.bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 40px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--faint);
}
.score {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  color: var(--soft);
}
.score b {
  color: #ff8fa3;
  font-weight: 500;
}
.ask {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: min(440px, 80%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line2);
  background: rgba(8, 12, 34, 0.94);
  color: var(--faint);
  font-size: 12px;
}
.ask .send {
  margin-left: auto;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--blue);
  display: grid;
  place-items: center;
}
.ask .send svg {
  width: 14px;
  height: 14px;
}

/* ---- Strip under the window ---- */

/* ---- Sections ---- */
section {
  position: relative;
}
.head {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 56px;
}
.head h2 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
  max-width: 18ch;
}
.head p {
  color: var(--soft);
  max-width: 620px;
}

.card {
  position: relative;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--card);
  overflow: hidden;
  isolation: isolate;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    180deg,
    rgba(140, 170, 255, 0.45),
    rgba(140, 170, 255, 0) 40%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.card p {
  color: var(--soft);
  font-size: 15px;
  max-width: 44ch;
}

/* VisionX card */
.result {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 95, 122, 0.08);
  border: 1px solid rgba(255, 95, 122, 0.28);
}
.result b {
  font-size: 28px;
  font-weight: 500;
  color: #ff8fa3;
  line-height: 1;
}
.result span {
  color: var(--soft);
  font-size: 13.5px;
  line-height: 1.4;
}

/* Chat card */
.chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}
.chat .a {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  padding: 10px 14px;
  border-radius: 14px 14px 14px 4px;
  max-width: 92%;
  color: var(--soft);
}
.chat .done {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: var(--ok);
  font-size: 12.5px;
  margin-top: 4px;
}
.checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  font-size: 14px;
  color: var(--soft);
}
.check svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 3px;
  stroke: var(--ok);
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.check b {
  color: var(--ink);
  font-weight: 500;
  display: block;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: s;
}
.step {
  padding: 26px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.step p {
  color: var(--soft);
  font-size: 15px;
}

/* Examples carousel */
.track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 10px max(20px, calc((100vw - 380px) / 2)) 30px;
  margin: 0 calc(-1 * max(20px, env(safe-area-inset-left, 0px)));
}
.track::-webkit-scrollbar {
  display: none;
}

/* Pricing */
.plans {
  display: grid;
  grid-template-columns: 1fr 1.06fr 1fr;
  gap: 20px;
  align-items: stretch;
}
.plan {
  position: relative;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: linear-gradient(
    180deg,
    rgba(14, 20, 48, 0.75),
    rgba(6, 9, 24, 0.85)
  );
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.price b {
  font-size: 42px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}
.price span {
  color: var(--faint);
  font-size: 14px;
}
.plan .btn {
  width: 100%;
}
.plan ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 14.5px;
  color: var(--soft);
}
.plan li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.plan li svg {
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: 2px;
}
.plan li svg path {
  fill: none;
  stroke: var(--soft);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Developer API band */
.api {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
  align-items: center;
  padding: 36px;
  border-radius: 24px;
  border: 1px solid var(--line2);
  background: linear-gradient(
    110deg,
    rgba(30, 58, 170, 0.35),
    rgba(8, 12, 32, 0.9) 60%
  );
  position: relative;
  overflow: hidden;
}
.api h2 {
  font-size: clamp(26px, 3vw, 36px);
  margin: 10px 0 12px;
}
.api p {
  color: var(--soft);
  max-width: 52ch;
}
.code {
  font:
    13px/1.7 ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
  padding: 18px;
  border-radius: 14px;
  background: rgba(3, 5, 14, 0.8);
  border: 1px solid var(--line);
  color: #c8d4ff;
  overflow-x: auto;
  white-space: pre;
}
.code .s {
  color: #9ff0c9;
}

/* Final call and footer */
.end {
  position: relative;
  overflow: hidden;
  padding: 110px 0 0;
  border-top: 1px solid var(--line);
}
.end::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 620px;
  background: radial-gradient(
    50% 55% at 50% 100%,
    rgba(70, 125, 255, 0.95),
    rgba(40, 80, 220, 0.45) 40%,
    rgba(15, 30, 110, 0.15) 65%,
    transparent 80%
  );
  z-index: -1;
}
.end::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 640px;
  z-index: -1;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0 46px,
    rgba(170, 195, 255, 0.05) 46px 48px,
    rgba(255, 255, 255, 0) 48px 92px
  );
  -webkit-mask: radial-gradient(55% 70% at 50% 100%, #000 25%, transparent 75%);
  mask: radial-gradient(55% 70% at 50% 100%, #000 25%, transparent 75%);
}
.endgrid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
}
.endgrid h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.12;
  max-width: 16ch;
}
.endgrid p {
  color: var(--soft);
  margin: 16px 0 24px;
  max-width: 46ch;
}
.cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  font-size: 14px;
}
.cols h4 {
  margin: 0 0 12px;
  font: 500 12.5px/1 var(--font);
  color: var(--faint);
  letter-spacing: 0.06em;
}
.cols a {
  display: block;
  color: var(--soft);
  text-decoration: none;
  padding: 4px 0;
}
.cols a:hover {
  color: var(--ink);
}
.age {
  color: var(--faint);
  font-size: 13px;
  margin-top: 14px;
}
.word {
  font-size: clamp(64px, 16.4vw, 236px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.8;
  text-align: center;
  margin-top: 80px;
  background: linear-gradient(
    180deg,
    rgba(230, 238, 255, 0.55),
    rgba(200, 215, 255, 0.08) 85%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
}
.legal {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 18px 0 26px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 13px;
  position: relative;
  z-index: 1;
  background: rgba(3, 4, 11, 0.4);
}

/* Reveal on scroll */
.js .rv {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
}
.js .rv.in {
  opacity: 1;
  transform: none;
}

/* Plain pages (API, legal) */
.page {
  padding: 140px 0 80px;
  min-height: 70vh;
}
.page .head {
  margin-bottom: 40px;
}
.blank {
  border-radius: 24px;
  border: 1px dashed var(--line2);
  background: rgba(255, 255, 255, 0.015);
  min-height: 360px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px;
  color: var(--faint);
}
.blank b {
  display: block;
  color: var(--ink);
  font-weight: 500;
  font-size: 18px;
  margin-bottom: 6px;
}
.doc {
  max-width: 780px;
  margin: 0 auto;
}
.doc .meta {
  color: var(--faint);
  font-size: 14px;
  text-align: center;
  margin-bottom: 36px;
}
.doc .intro {
  color: var(--soft);
  font-size: 16.5px;
  margin-bottom: 28px;
}
.doc h2 {
  font-size: 22px;
  margin: 38px 0 12px;
  font-weight: 500;
}
.doc p {
  color: var(--soft);
  margin: 0 0 12px;
}
.doc ul {
  color: var(--soft);
  margin: 0 0 12px;
  padding-left: 22px;
}
.doc li {
  margin: 6px 0;
}
.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 40px;
}
.toc a {
  font-size: 13px;
  color: var(--soft);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.toc a:hover {
  color: var(--ink);
  border-color: var(--line2);
}

/* ---- Smaller screens ---- */
@media (max-width: 980px) {
  .api,
  .endgrid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }
  .plans {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin: 0 auto;
  }
}
@media (max-width: 760px) {
  .links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 20px 18px;
    background: rgba(4, 6, 18, 0.96);
    border-bottom: 1px solid var(--line);
  }
  .links.open {
    display: flex;
  }
  .links a {
    display: block;
    padding: 12px 0;
    font-size: 16px;
  }
  .menu {
    display: grid;
    place-items: center;
  }
  .nav .cta-nav {
    display: none;
  }
  .hero {
    padding-top: 120px;
  }

  .steps,
  .checks,
  .cols {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 520px) {
  .steps,
  .checks {
    grid-template-columns: 1fr;
  }
  .api {
    padding: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
  .js .rv {
    opacity: 1;
    transform: none;
  }
}
html,
body {
  overflow-x: clip;
}
section,
.end {
  isolation: isolate;
}

/* Images keep their own shape (width and height attributes only reserve space) */
img {
  height: auto;
}

/* Talk to Vex: the whole of Vex, standing in the card */

/* Chat: a photo of a product, and the item found */
.item {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
  padding: 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}
.item svg {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 8px;
  background: linear-gradient(160deg, #e9ecf6, #c6cbe0);
  padding: 4px;
}
.item b {
  display: block;
  color: var(--ink);
  font-weight: 500;
  font-size: 13.5px;
}
.item span {
  font-size: 12.5px;
}

/* The developer */
/* The developer's photo: round, with a blue ring */

/* ---- Small helpers used in the HTML (instead of inline styles, which the security policy blocks) */
.beams-low {
  height: 520px;
  opacity: 0.6;
}
.h-doc {
  font-size: clamp(32px, 4.5vw, 50px);
}
.h-api {
  font-size: clamp(34px, 5vw, 56px);
}
.cta.cta-left {
  justify-content: flex-start;
}
.legal-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
}
