/* Vetra site (home, contact, legal). Mobile first. */

/* Geist, self-hosted (SIL OFL 1.1, see /fonts/OFL.txt) */
@font-face {
  font-family: 'Geist';
  src: url('/fonts/geist.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --violet: #6d28d9;          /* brand, AA on white for text */
  --violet-btn: #7c3aed;      /* button fill (white text 5.7:1) */
  --violet-btn-hover: #6d28d9;
  --violet-50: #f6f3ff;
  --violet-100: #ece7fd;
  --violet-line: #d9cffb;
  --ink: #16121f;
  --text: #2b2735;
  --muted: #5d5a68;           /* 6.4:1 on white, 5.9:1 on tint */
  --line: #e7e4ee;
  --bg: #ffffff;
  --tint: #f8f7fb;
  --radius-lg: 20px;
  --radius: 14px;
  --radius-sm: 10px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --shadow-soft: 0 1px 2px rgba(40, 24, 90, .06), 0 8px 18px -8px rgba(40, 24, 90, .12);
  --shadow-shot: 0 2px 4px rgba(40, 24, 90, .06), 0 14px 24px -12px rgba(40, 24, 90, .24);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; scrollbar-color: #cfc8de transparent; }
body {
  margin: 0;
  font-family: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px; line-height: 1.6; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden; caret-color: var(--violet);
}
body.menu-open { overflow: hidden; }
::selection { background: var(--violet-100); color: var(--ink); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3 { color: var(--ink); margin: 0; letter-spacing: -0.025em; text-wrap: balance; }
p, dd, li { text-wrap: pretty; }
p, dl, dd, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 28px; } }

.skip { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ── Buttons ─────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: .95rem; line-height: 1; letter-spacing: -0.005em;
  padding: .85rem 1.3rem; border-radius: 12px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .16s var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn-sm { padding: .62rem 1rem; font-size: .875rem; border-radius: 10px; }
.btn-lg { padding: 1rem 1.5rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--violet-btn); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 6px 14px -6px rgba(109, 40, 217, .55); }
.btn-primary:disabled { opacity: .6; cursor: default; transform: none; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline { background: #fff; color: var(--violet); border-color: var(--violet-line); }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--violet-btn-hover); }
  .btn-ghost:hover { border-color: var(--violet-line); color: var(--violet); }
  .btn-outline:hover { background: var(--violet-50); }
}
.link-quiet { color: var(--text); font-weight: 500; font-size: .92rem; text-decoration: none; }
.link-quiet:hover { color: var(--violet); }

/* ── Nav ─────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 1rem; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; text-decoration: none; }
.nav-links { display: none; gap: 1.75rem; margin-left: 2.25rem; }
.nav-links a { color: var(--text); font-size: .92rem; font-weight: 500; text-decoration: none; }
.nav-links a:hover { color: var(--violet); }
.nav-actions { display: none; margin-left: auto; align-items: center; gap: 1.25rem; }
.nav-toggle {
  margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer;
}
.nav-toggle span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s var(--ease-out); }
.nav-toggle.open span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle.open span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
/* backdrop-filter makes .nav the containing block of fixed children: drop it while the menu is open */
body.menu-open .nav { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; border-bottom-color: var(--line); }
.mobile-nav { position: fixed; inset: 64px 0 0 0; height: calc(100dvh - 64px); z-index: 60; background: #fff; padding: .5rem 16px 2rem; display: flex; flex-direction: column; overflow-y: auto; }
.mobile-nav a { padding: 1rem .25rem; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 1.05rem; text-decoration: none; }
.mobile-nav a.btn { margin-top: 1.25rem; border-bottom: 0; color: #fff; padding: 1rem; }
@media (min-width: 960px) {
  .nav-links, .nav-actions { display: flex; }
  .nav-toggle, .mobile-nav { display: none !important; }
}

/* ── Sections ─────────────────────────────── */
.section { padding: 72px 0 80px; }
.section-tint { background: var(--tint); }
.section h2 { font-size: clamp(1.65rem, 4vw, 2.35rem); line-height: 1.14; font-weight: 700; letter-spacing: -0.03em; }
.section-head { max-width: 660px; margin: 0 auto 44px; text-align: center; }
.section-lead { color: var(--muted); font-size: 1.05rem; margin-top: .9rem; max-width: 60ch; }
.section-head .section-lead { margin-left: auto; margin-right: auto; }
@media (min-width: 960px) { .section { padding: 104px 0 112px; } }

/* ── Hero ─────────────────────────────── */
.hero { padding: 48px 0 0; background: linear-gradient(180deg, #fbfaff 0%, #fff 60%); overflow: hidden; }
.hero-copy { text-align: center; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 3.9rem); line-height: 1.04; font-weight: 700; letter-spacing: -0.04em; max-width: 15ch; margin: 0 auto; }
.hero h1 span { display: block; }
@media (min-width: 760px) { .hero h1 { max-width: 22ch; } }
.hero h1 span { color: var(--violet); }
.lead { font-size: clamp(1.05rem, 2.2vw, 1.2rem); color: var(--muted); margin: 1.25rem auto 0; max-width: 46ch; }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 2rem; }
@media (max-width: 479px) { .hero-ctas .btn { flex: 1 1 100%; } }

.hero-stage { position: relative; margin-top: 52px; padding-bottom: 8px; }
.shot { background: #fff; overflow: hidden; }
.shot img { width: 100%; }
.shot-browser { border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow-shot); }
.browser-bar { display: flex; gap: 6px; padding: 10px 14px; background: #faf9fc; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #e2dfe9; }
.shot-phone { border-radius: 30px; border: 7px solid #17131f; box-shadow: var(--shadow-shot); background: #17131f; }
.shot-phone img { border-radius: 23px; }
.hero .shot-phone { position: absolute; right: 16px; bottom: -64px; width: 31%; max-width: 250px; min-width: 128px; }
@media (min-width: 640px) { .hero .shot-phone { right: 36px; } }
@media (min-width: 1024px) {
  .hero { padding-top: 72px; }
  .hero-stage { margin-top: 64px; }
  .hero .shot-phone { right: -8px; bottom: -96px; }
}
.sectors { text-align: center; color: var(--muted); font-size: .95rem; padding-top: 104px; padding-bottom: 8px; max-width: 760px; }
@media (min-width: 1024px) { .sectors { padding-top: 136px; } }

/* One authored moment: the product rises into place once. Visible by default. */
@media (prefers-reduced-motion: no-preference) {
  .hero-stage .shot-browser { animation: rise 900ms var(--ease-out) both; }
  .hero-stage .shot-phone { animation: rise-phone 1000ms var(--ease-out) 140ms both; }
}
@keyframes rise { from { transform: translateY(28px) scale(.985); opacity: .001; filter: blur(4px); } to { transform: none; opacity: 1; filter: none; } }
@keyframes rise-phone { from { transform: translateY(44px); opacity: .001; } to { transform: none; opacity: 1; } }

/* ── Split sections ─────────────────────────────── */
.split { display: grid; gap: 44px; align-items: center; }
.split-copy h2 { max-width: 20ch; }
.checks { margin-top: 1.6rem; display: grid; gap: .85rem; }
.checks li { position: relative; padding-left: 30px; color: var(--muted); }
.checks li b { color: var(--ink); font-weight: 600; }
.checks li::before {
  content: ''; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 6px;
  background: var(--violet-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236d28d9' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/11px no-repeat;
}
.shot-phone-lg { width: min(300px, 76%); margin: 0 auto; }
@media (min-width: 960px) {
  .split { grid-template-columns: 1.05fr .95fr; gap: 80px; }
  .split.reverse { grid-template-columns: 1.15fr .85fr; }
  .split.reverse .split-copy { order: 2; }
  .split.reverse .stack { order: 1; }
}

.trio { display: grid; gap: 28px; margin-top: 72px; padding-top: 36px; border-top: 1px solid var(--line); }
.trio h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: .35rem; }
.trio p { color: var(--muted); font-size: .96rem; }
@media (min-width: 760px) { .trio { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

.stack { position: relative; padding-bottom: 72px; }
.shot-card { border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow-shot); }
.shot-float { position: absolute; right: -4px; bottom: 0; width: 56%; }
@media (min-width: 960px) { .shot-float { right: -32px; width: 50%; } .stack { padding-bottom: 96px; } }

/* ── Shared features: a two-column list, not a card grid ─────────────── */
.shared { display: grid; gap: 32px; }
.shared h2 { max-width: 14ch; }
.shared-list { display: grid; gap: 0; }
.shared-list > div { padding: 22px 0; border-top: 1px solid var(--line); }
.shared-list dt { font-weight: 600; color: var(--ink); font-size: 1.05rem; }
.shared-list dd { color: var(--muted); margin-top: .3rem; }
@media (min-width: 760px) { .shared-list { grid-template-columns: 1fr 1fr; column-gap: 48px; } }
@media (min-width: 1024px) { .shared { grid-template-columns: .7fr 1.3fr; gap: 64px; } .shared h2 { position: sticky; top: 110px; align-self: start; } }

/* ── Steps: one line through three moments ─────────────── */
.steps { display: grid; gap: 32px; counter-reset: s; max-width: 1000px; margin: 0 auto; }
.steps li { position: relative; padding-left: 52px; counter-increment: s; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 50%;
  background: #fff; border: 1.5px solid var(--violet-line); color: var(--violet); font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums;
}
.steps h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: .35rem; }
.steps p { color: var(--muted); }
@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .steps li { padding-left: 0; padding-top: 56px; }
  .steps li::before { top: 0; }
  .steps li:not(:last-child)::after { content: ''; position: absolute; top: 18px; left: 48px; right: -28px; height: 1.5px; background: var(--violet-line); }
}

/* ── Pricing ─────────────────────────────── */
.sector-tabs { display: flex; width: fit-content; max-width: 100%; margin: 0 auto 28px; padding: 4px; gap: 4px; background: var(--violet-50); border: 1px solid var(--violet-100); border-radius: 14px; }
.sector-tabs button { appearance: none; border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 600; font-size: .95rem; padding: .6rem 1.1rem; border-radius: 10px; cursor: pointer; transition: background-color .2s var(--ease-out), color .2s var(--ease-out); }
.sector-tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(22, 18, 31, .08), 0 0 0 1px var(--line); }
.sector-tabs button:active { transform: scale(.97); }
@media (prefers-reduced-motion: reduce) { .sector-tabs button { transition: none; } .sector-tabs button:active { transform: none; } }
.plans { display: grid; gap: 16px; max-width: 760px; margin: 0 auto; }
.plans[hidden] { display: none; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 24px 24px; display: flex; flex-direction: column; }
.plan h3 { font-size: 1.1rem; font-weight: 600; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.plan-flag { font-size: .75rem; font-weight: 600; color: var(--violet); background: var(--violet-50); border: 1px solid var(--violet-line); padding: 2px 8px; border-radius: 6px; letter-spacing: 0; }
.price { margin-top: .7rem; display: flex; align-items: baseline; gap: .35rem; }
.price b { font-size: 2.6rem; font-weight: 700; color: var(--ink); letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.price span { color: var(--muted); font-size: .92rem; }
.plan-for { color: var(--muted); font-size: .95rem; margin-top: .55rem; }
.plan ul { margin: 1.4rem 0 1.6rem; padding-top: 1.2rem; border-top: 1px solid var(--line); display: grid; gap: .65rem; flex: 1; align-content: start; }
.plan li { position: relative; padding-left: 26px; font-size: .95rem; color: var(--text); }
.plan li::before {
  content: ''; position: absolute; left: 0; top: .32em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--violet-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236d28d9' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/10px no-repeat;
}
.plan .btn { width: 100%; }
.plan-pro { border-color: var(--violet-btn); box-shadow: 0 0 0 1px var(--violet-btn), 0 12px 22px -14px rgba(109, 40, 217, .4); }
.plans-note { text-align: center; color: var(--muted); font-size: .92rem; margin-top: 28px; }
@media (min-width: 900px) {
  .plans { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .plan-top { min-height: 146px; }
}

/* ── FAQ ─────────────────────────────── */
.faq-wrap { display: grid; gap: 24px; }
.faq { display: grid; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 36px 18px 0; font-weight: 600; color: var(--ink); position: relative; border-radius: 8px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 4px; top: 50%; width: 18px; height: 18px; margin-top: -9px; transition: transform .25s var(--ease-out);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d5a68' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/18px no-repeat;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 36px 20px 0; }
@media (min-width: 960px) { .faq-wrap { grid-template-columns: .75fr 1.25fr; gap: 64px; align-items: start; } }

/* ── Request access ─────────────────────────────── */
.access { background: var(--violet-50); border-top: 1px solid var(--violet-100); }
.access-grid { display: grid; gap: 36px; align-items: start; }
.access-form { background: #fff; border: 1px solid var(--violet-100); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-soft); }
.access-form label { display: block; font-size: .88rem; font-weight: 600; color: var(--text); margin-bottom: 16px; }
.access-form .opt { font-weight: 400; color: var(--muted); }
.access-form input:not([type=checkbox]), .access-form select, .access-form textarea {
  display: block; width: 100%; margin-top: 6px; font-size: 16px; font-weight: 400; color: var(--ink);
  background: #fff; border: 1px solid #cdc9d8; border-radius: 12px; padding: .75rem .85rem; min-width: 0;
  -webkit-appearance: none; appearance: none; transition: border-color .15s ease, box-shadow .15s ease;
}
.access-form ::placeholder { color: #75727f; opacity: 1; }
.access-form select {
  padding-right: 2.2rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d5a68' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right .75rem center/16px no-repeat;
}
.access-form textarea { resize: vertical; min-height: 88px; }
.access-form input:focus, .access-form select:focus, .access-form textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-100); }
.row2 { display: grid; gap: 0 14px; }
@media (min-width: 560px) { .row2 { grid-template-columns: 1fr 1fr; } }
.consent { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; color: var(--muted) !important; font-size: .86rem !important; }
.consent input { margin-top: 2px; width: 18px; height: 18px; accent-color: var(--violet-btn); flex: none; }
.form-error { background: #fff1f2; color: #b4133a; border: 1px solid #fecdd3; border-radius: 10px; padding: .65rem .85rem; font-size: .9rem; margin-bottom: 14px; }
.form-ok { text-align: center; padding: 32px 8px; outline: none; }
.form-ok h3 { font-size: 1.3rem; font-weight: 600; margin: 14px 0 6px; }
.form-ok p { color: var(--muted); }
.ok-ico { width: 56px; height: 56px; border-radius: 50%; background: #dcfce7; display: inline-flex; align-items: center; justify-content: center; }
.ok-ico svg { width: 28px; height: 28px; fill: none; stroke: #15803d; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
@media (min-width: 960px) {
  .access-grid { grid-template-columns: .85fr 1.15fr; gap: 72px; }
  .access-copy { position: sticky; top: 110px; }
  .access-form { padding: 32px; }
}

/* ── Footer ─────────────────────────────── */
.footer { border-top: 1px solid var(--line); padding: 44px 0 28px; font-size: .92rem; color: var(--muted); }
.footer-grid { display: grid; gap: 24px; }
.footer-tag { margin-top: .6rem; max-width: 34ch; }
.footer nav { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }
.footer nav a { color: var(--text); text-decoration: none; }
.footer nav a:hover { color: var(--violet); }
.footer-bottom { margin-top: 32px; font-size: .85rem; }
@media (min-width: 860px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; align-items: start; }
  .footer nav { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .nav-toggle span, .faq summary::after { transition: none; }
}

/* ── Content pages (contact, legal) ─────────────────────────────── */
.page { padding: 48px 0 88px; }
.page-narrow { max-width: 760px; }
.page h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); line-height: 1.1; font-weight: 700; letter-spacing: -0.035em; }
.page-meta { color: var(--muted); margin-top: .6rem; font-size: .95rem; }
.contact-form { margin-top: 32px; }
.form-ok h2 { font-size: 1.3rem; font-weight: 600; margin: 14px 0 6px; }
.prose { margin-top: 32px; color: var(--text); }
.prose h2 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.015em; margin: 2.2rem 0 .7rem; }
.prose h3 { font-size: 1.05rem; font-weight: 600; margin: 1.6rem 0 .5rem; }
.prose p, .prose ul, .prose ol, .prose table { margin: 0 0 1rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: .4rem; }
.prose li::marker { color: var(--violet); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .92rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 600; color: var(--ink); }
.prose code { font-size: .9em; background: var(--tint); padding: 1px 5px; border-radius: 5px; }
