/* Vand Digital – site styles
   Brand: Vand Purple #9333EA · Purple hover #7E22CE · Ink #14111C · Grey #5B5466
          Mist #F4F2F8 · Lilac tint #F5EEFE (border #E9D5FF) · Line #E4E0EC */

:root {
  --purple: #9333ea;
  --purple-hover: #7e22ce;
  --ink: #14111c;
  --grey: #5b5466;
  --mist: #f4f2f8;
  --lilac: #f5eefe;
  --lilac-border: #e9d5ff;
  --line: #e4e0ec;
  --field-border: #8f86a0;   /* 3.4:1 on white – meets WCAG 1.4.11 for form controls */
  --focus: #7e22ce;          /* 7:1 on white */
  --orange: #ea580c;
  --error: #b42318;
  --success: #067647;
  --white: #ffffff;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --section-pad: 96px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a { color: var(--purple); }
a:hover { color: var(--purple-hover); }

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

h1, h2, h3, p { margin: 0; }

/* Anchored sections clear nothing (header is not sticky) but get a little air */
[id] { scroll-margin-top: 16px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--white); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

main { flex: 1 0 auto; }

.section { padding: var(--section-pad) 0; }
.bg-white { background: var(--white); }
.bg-mist  { background: var(--mist); }

@media (max-width: 640px) {
  :root { --section-pad: 48px; }
  .section, .hero, .page-hero, .svc, .banner-wrap { padding-top: 48px !important; padding-bottom: 48px !important; }
}

/* ---------- Type ---------- */
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple);
}

.h1 {
  font-size: clamp(38px, 4.6vw, 60px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.h2 {
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.lead { font-size: 19px; line-height: 1.6; color: var(--grey); }
.body-lg { font-size: 17px; line-height: 1.6; color: var(--grey); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 640px;
  margin-bottom: 48px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  font-family: inherit;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--purple); border-color: var(--purple); color: var(--white); }
.btn-primary:hover { background: var(--purple-hover); border-color: var(--purple-hover); color: var(--white); }
.btn-secondary { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-secondary:hover { border-color: var(--purple); color: var(--ink); }
.btn-bold { font-weight: 700; padding: 0 24px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .7; cursor: progress; }

/* ---------- Header ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; padding: 4px 0; }
.brand img { height: 34px; width: auto; }

.main-nav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 24px;
}
.main-nav a {
  display: inline-block;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  padding: 12px 4px;
}
.main-nav a:hover { color: var(--purple); }
.main-nav a[aria-current="page"] { color: var(--purple); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--mist); color: var(--grey); padding: 56px 0 32px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; max-width: 340px; }
.footer-brand p { font-size: 15px; line-height: 1.6; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 40px 64px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; min-width: 160px; }
.footer-col h2 {
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footlink { color: var(--grey); text-decoration: none; font-size: 15px; display: inline-block; padding: 2px 0; }
.footlink:hover { color: var(--purple); }
.footer-bottom {
  margin-top: 48px; padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px;
  font-size: 13px;
}

/* ---------- Icons ---------- */
.icon-tile {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--mist);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.icon-tile.on-mist { background: var(--white); }
.icon-tile.sm { width: 44px; height: 44px; }
.ico { fill: none; stroke: var(--purple); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ---------- Home: hero ---------- */
.hero { background-color: var(--mist); padding: 88px 0 96px; position: relative; overflow: hidden; }
.dots {
  background-image: radial-gradient(#ddd5ea 1.2px, transparent 1.3px);
  background-size: 26px 26px;
  animation: drift 30s linear infinite;
}
@keyframes drift { to { background-position: 260px 130px; } }

.hero .container { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero-copy { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero-title {
  font-size: clamp(40px, 5.2vw, 68px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.hero-copy .lead { max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero-visual { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.radar { width: 100%; max-width: 480px; height: auto; overflow: visible; }
@media (max-width: 640px) { .radar { max-width: 300px; } }

.rise { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.rise.d1 { animation-delay: .05s; }
.rise.d2 { animation-delay: .15s; }
.rise.d3 { animation-delay: .25s; }
.rise.d4 { animation-delay: .3s; }
.rise.d5 { animation-delay: .45s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

.uline { position: relative; white-space: nowrap; }
.uline::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -0.16em;
  height: 0.1em; border-radius: 99px;
  background: var(--purple);
  transform: scaleX(0); transform-origin: left;
  animation: uline .9s 1s cubic-bezier(.6,0,.2,1) forwards;
}
@keyframes uline { to { transform: scaleX(1); } }

/* Radar parts – 4 s loop */
.sweep { transform-box: view-box; transform-origin: 220px 220px; animation: spin 4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.blip { transform-box: fill-box; transform-origin: center; animation: blip 4s linear infinite; }
@keyframes blip { 0% { opacity: 1; transform: scale(1.8); } 12% { opacity: 1; transform: scale(1); } 70%, 100% { opacity: .3; transform: scale(1); } }

.bad { animation: bad 4s linear infinite; }
@keyframes bad { 0%, 68% { opacity: 0; } 76%, 100% { opacity: 1; } }

.badring { transform-box: fill-box; transform-origin: center; animation: badring 4s ease-out infinite; }
@keyframes badring { 0%, 74% { opacity: 0; transform: scale(1); } 80% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(2.6); } }

.good { transform-box: fill-box; transform-origin: center; animation: good 4s cubic-bezier(.3,1.6,.5,1) infinite; }
@keyframes good { 0% { opacity: 0; transform: scale(.2); } 6% { opacity: 1; transform: scale(1); } 55% { opacity: 1; transform: scale(1); } 64%, 100% { opacity: 0; transform: scale(1); } }

.burst { transform-box: fill-box; transform-origin: center; animation: burst 4s ease-out infinite; }
@keyframes burst { 0% { opacity: .8; transform: scale(1); } 28%, 100% { opacity: 0; transform: scale(4.5); } }

.chip { animation: chip 4s ease infinite; }
@keyframes chip { 0% { opacity: 0; transform: translateY(6px); } 8% { opacity: 1; transform: none; } 48% { opacity: 1; transform: none; } 58%, 100% { opacity: 0; } }

.ring { transform-box: fill-box; transform-origin: center; opacity: 0; animation: ring 2.6s ease-out infinite; }
@keyframes ring { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(3.4); opacity: 0; } }

/* Per-element phase offsets (kept out of inline styles so the CSP needs no 'unsafe-inline') */
.t-3867 { animation-delay: -3.867s; } .t-3444 { animation-delay: -3.444s; }
.t-2689 { animation-delay: -2.689s; } .t-2333 { animation-delay: -2.333s; }
.t-2022 { animation-delay: -2.022s; } .t-1722 { animation-delay: -1.722s; }
.t-0778 { animation-delay: -0.778s; } .t-0467 { animation-delay: -0.467s; }
.t-0222 { animation-delay: -0.222s; } .t-3756 { animation-delay: -3.756s; }
.t-2556 { animation-delay: -2.556s; } .t-1000 { animation-delay: -1s; }
.t-3133 { animation-delay: -3.133s; } .t-1311 { animation-delay: -1.311s; }
.r-a { animation-delay: .6s; } .r-b { animation-delay: 1.9s; }

/* Pause control (WCAG 2.2.2: looping motion must be pausable) */
.motion-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--white); color: var(--grey);
  font-family: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer;
}
.motion-toggle:hover { color: var(--ink); border-color: var(--purple); }
.motion-toggle svg { width: 16px; height: 16px; }
.motion-toggle .i-play { display: none; }
.motion-paused .motion-toggle .i-play { display: block; }
.motion-paused .motion-toggle .i-pause { display: none; }

.motion-paused .dots,
.motion-paused .radar * { animation-play-state: paused !important; }

/* Still version for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .rise, .uline::after, .dots, .sweep, .blip, .bad, .badring, .good, .burst, .chip, .ring { animation: none !important; }
  .rise { opacity: 1; transform: none; }
  .uline::after { transform: none; }
  .bad, .badring, .burst, .chip, .ring { opacity: 0; }
  .good { opacity: 1; }
  .blip { opacity: .6; }
  .motion-toggle { display: none; }
}

/* ---------- Home: mission ---------- */
.steps { display: flex; flex-wrap: wrap; gap: 32px; list-style: none; margin: 0; padding: 0; }
.step { flex: 1 1 220px; display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 2px solid var(--purple); }
.step-num { font-size: 14px; font-weight: 700; color: var(--purple); letter-spacing: 0.06em; }
.step h3 { font-size: 22px; font-weight: 700; }
.step p, .card p { font-size: 15px; line-height: 1.6; color: var(--grey); }

/* ---------- Home: solution cards (2 on first row, 3 on second) ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.svc-grid > li { grid-column: span 2; display: flex; }
.svc-grid > li:nth-child(-n+2) { grid-column: span 3; }
@media (max-width: 900px) {
  .svc-grid { grid-template-columns: 1fr; }
  .svc-grid > li, .svc-grid > li:nth-child(-n+2) { grid-column: auto; }
}
.card {
  flex: 1;
  display: flex; flex-direction: column; gap: 14px;
  padding: 28px;
  border: 1px solid var(--line); border-radius: 16px;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  transition: border-color .15s;
}
.card:hover { border-color: var(--purple); color: var(--ink); }
.card h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.card-more { margin-top: auto; display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--purple); }

/* ---------- Home: why ---------- */
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.split-intro { flex: 1 1 380px; display: flex; flex-direction: column; gap: 14px; }
.split-intro .body-lg { max-width: 460px; }
.points { flex: 1 1 420px; display: flex; flex-direction: column; gap: 28px; list-style: none; margin: 0; padding: 0; }
.point { display: flex; gap: 14px; align-items: flex-start; }
.point h3 { font-size: 17px; font-weight: 700; line-height: 1.5; }
.point p { font-size: 15px; line-height: 1.6; color: var(--grey); margin-top: 4px; }

/* ---------- Home: who we are ---------- */
.who { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.who-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.who-copy .strong { color: var(--ink); font-weight: 600; }
.highlights { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 14px; list-style: none; margin: 0; padding: 0; }
.highlight { display: flex; gap: 14px; align-items: center; padding: 20px; border-radius: 16px; background: var(--white); border: 1px solid var(--line); }
.highlight h3 { font-size: 18px; font-weight: 700; }
.highlight p { font-size: 14px; line-height: 1.5; color: var(--grey); margin-top: 2px; }

/* ---------- CTA banner ---------- */
.banner-wrap { padding: 72px 0 88px; }
.banner-wrap.tight { padding: 32px 0 80px; }
.banner {
  background: var(--lilac);
  border: 1px solid var(--lilac-border);
  border-radius: 24px;
  padding: 56px 40px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
}
.banner-copy { display: flex; flex-direction: column; gap: 10px; max-width: 620px; }
.banner h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
@media (max-width: 640px) { .banner { padding: 32px 24px; } }

/* ---------- Inner page hero ---------- */
.page-hero { background: var(--mist); padding: 80px 0 64px; }
.page-hero.solutions { padding: 88px 0 72px; }
.page-hero .container { display: flex; flex-direction: column; gap: 18px; }
.page-hero.solutions .container { gap: 22px; }
.page-hero .lead { max-width: 600px; }
.page-hero.solutions .h1 { max-width: 820px; }
.page-hero.solutions .lead, .page-hero.privacy .lead { max-width: 640px; }
.updated { font-size: 14px; color: var(--grey); }

.quick-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 0; padding: 0; list-style: none; }
.quick-links a {
  display: inline-flex; align-items: center;
  min-height: 40px; padding: 0 16px;
  border-radius: 999px; border: 1px solid #cfc8db;
  background: var(--white); color: var(--ink);
  font-size: 14px; font-weight: 500; text-decoration: none;
}
.quick-links a:hover { border-color: var(--purple); color: var(--purple); }

/* ---------- Solutions: service sections ---------- */
.svc { padding: 64px 0; }
.svc.last { padding-bottom: 48px; }
.svc .container { display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: flex-start; }
.svc-intro { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.svc-intro h2 { font-size: 32px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
.svc-intro p { font-size: 17px; line-height: 1.65; color: var(--grey); max-width: 520px; }
.svc-box { flex: 1 1 380px; min-width: 0; padding: 28px; border-radius: 16px; background: var(--mist); border: 1px solid var(--line); }
.bg-mist .svc-box { background: var(--white); }
.svc-box h3 { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--grey); margin-bottom: 16px; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.5; }

/* ---------- Contact ---------- */
.contact-section { padding: 72px 0 96px; }
.contact-layout { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.form-card {
  flex: 999 1 560px; min-width: 0;
  display: flex; flex-direction: column; gap: 20px;
  padding: 36px;
  border: 1px solid var(--line); border-radius: 20px;
}
@media (max-width: 640px) { .form-card { padding: 24px; } }
.form-card > h2 { font-size: 26px; font-weight: 700; letter-spacing: -0.01em; }
.form-note { margin-top: -12px; font-size: 14px; line-height: 1.5; color: var(--grey); }
.form-note a { font-weight: 600; }
.field-row { display: flex; flex-wrap: wrap; gap: 20px; }
.field-row > .field { flex: 1 1 240px; min-width: 0; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--grey); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1.5px solid var(--field-border);
  border-radius: 10px;
  font-family: inherit; font-size: 16px; color: var(--ink);
  background: var(--white);
}
.field select {
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235b5466' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--grey); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--purple); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { display: none; align-items: flex-start; gap: 6px; margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--error); }
.field-error.show { display: flex; }
.field-error svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }

/* Honeypot – hidden from people and assistive tech, still in the DOM for bots */
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.turnstile-wrap { min-height: 65px; }

.form-status { display: none; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 12px; font-size: 15px; line-height: 1.5; }
.form-status.show { display: flex; }
.form-status svg { width: 22px; height: 22px; flex-shrink: 0; }
.form-status.success { background: #ecfdf3; border: 1px solid #abefc6; color: #054f31; }
.form-status.error { background: #fef3f2; border: 1px solid #fecdca; color: #7a271a; }
.form-status strong { display: block; }
.form-status a { color: inherit; font-weight: 700; }

.aside { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.email-box { padding: 32px; border-radius: 20px; background: var(--mist); display: flex; flex-direction: column; gap: 24px; }
.email-box h2 { font-size: 20px; font-weight: 700; }
.email-row { display: flex; gap: 14px; align-items: flex-start; }
.email-row .label { font-size: 14px; font-weight: 600; color: var(--grey); }
.email-row a { display: inline-block; font-size: 17px; font-weight: 600; margin-top: 4px; color: var(--ink); text-decoration: none; }
.email-row a:hover { color: var(--purple); text-decoration: underline; }

/* ---------- Privacy ---------- */
.policy-section { padding: 72px 0 96px; }
.policy { max-width: 760px; }
.policy h2 { margin: 40px 0 12px; font-size: 24px; line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }
.policy h2:first-child { margin-top: 0; }
.policy p, .policy li { font-size: 16px; line-height: 1.7; color: var(--grey); }
.policy p { margin: 0 0 14px; }
.policy ul { margin: 0 0 14px; padding-left: 22px; }
.policy li { margin: 0 0 8px; }
.policy a { font-weight: 600; }

/* ---------- 404 ---------- */
.notfound .container { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }

/* ---------- Print ---------- */
@media print {
  .site-header nav, .hero-visual, .banner-wrap, .skip-link { display: none !important; }
  .dots { background-image: none; }
}
