/* vpixai content pages (service, pricing, blog, case study). Tokens match index.html.
   Styling only: every word stays in plain semantic HTML for search and AI crawlers. */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --ink: #0e1222;
  --ink-soft: #4a5068;
  --line: #e4e6ef;
  --brand: #5b3df5;
  --brand-dark: #4429d6;
  --brand-soft: #eeeaff;
  --accent: #12c99b;
  --accent-soft: #e6fbf5;
  --radius: 16px;
  --max: 1160px;
  --read: 760px;
  --shadow-sm: 0 1px 2px rgba(14, 18, 34, .04), 0 4px 14px rgba(14, 18, 34, .05);
  --shadow: 0 2px 6px rgba(14, 18, 34, .05), 0 18px 40px rgba(14, 18, 34, .09);
  --glow: radial-gradient(760px 380px at 88% -10%, var(--brand-soft), transparent 70%),
          radial-gradient(560px 300px at -5% 30%, var(--accent-soft), transparent 70%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 88px; }
body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, video { max-width: 100%; display: block; height: auto; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { line-height: 1.18; letter-spacing: -0.022em; }
::selection { background: var(--brand-soft); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 600; font-size: 16px; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 24px rgba(91, 61, 245, .3); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-2px); }
.btn-ghost { border-color: var(--line); background: #fff; }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 68px; }
.logo { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; text-decoration: none; }
.logo span { color: var(--brand); }
.nav-links { display: flex; gap: 26px; font-weight: 500; color: var(--ink-soft); }
.nav-links a { text-decoration: none; position: relative; padding: 4px 0; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--ink); }
.nav-links a[aria-current]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 2px; border-radius: 2px; background: var(--brand);
}
.nav .btn { padding: 10px 20px; font-size: 15px; }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--ink); }

/* Soft brand glow behind the top of every page (breadcrumb + hero / article head) */
main { background: var(--glow) no-repeat top / 100% 780px; }

/* Breadcrumb */
.breadcrumb { font-size: 14px; color: var(--ink-soft); padding: 24px 0 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: #b4b8cc; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); }

/* Page hero (service, pricing, about, work, blog hub) */
.page-hero { padding: 40px 0 80px; }
.page-hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; max-width: 820px; margin-bottom: 20px; }
.page-hero .lead { font-size: 19px; color: var(--ink-soft); max-width: 640px; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.facts { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.facts > div {
  background: rgba(255, 255, 255, .8); border: 1px solid var(--line);
  border-radius: 14px; padding: 12px 18px; min-width: 140px;
  box-shadow: var(--shadow-sm);
}
.facts strong { display: block; font-size: 24px; font-weight: 800; color: var(--brand); line-height: 1.2; }
.facts span { font-size: 13px; color: var(--ink-soft); }
.page-hero figure video, .page-hero figure img {
  border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--shadow); background: #0e1222;
}
.page-hero figcaption { font-size: 14px; color: var(--ink-soft); margin-top: 10px; }

@media (min-width: 1040px) {
  /* Hero with a video: text left, video right */
  .page-hero .container:has(> figure) {
    display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    column-gap: 56px; align-items: start;
  }
  .page-hero .container:has(> figure) > * { grid-column: 1; }
  .page-hero .container:has(> figure) > h1 { font-size: clamp(34px, 3.8vw, 50px); }
  .page-hero .container > figure {
    grid-column: 2; grid-row: 1 / span 6; align-self: center;
    margin-top: 0 !important; max-width: none !important;
  }
  /* Hero without media: a decorative video frame (pseudo-elements, no content) */
  .page-hero .container:not(:has(figure)) { position: relative; padding-right: 470px; }
  .page-hero .container:not(:has(figure))::before {
    content: ""; position: absolute; right: 24px; top: 50%; transform: translateY(-50%) rotate(2deg);
    width: 400px; aspect-ratio: 16 / 10; border-radius: 24px;
    background:
      linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px) 0 0 / 32px 32px,
      linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px) 0 0 / 32px 32px,
      linear-gradient(135deg, #1b1446 0%, var(--brand) 62%, var(--accent) 135%);
    box-shadow: 0 30px 80px rgba(27, 20, 70, .3);
  }
  .page-hero .container:not(:has(figure))::after {
    content: ""; position: absolute; right: 188px; top: 50%; transform: translateY(-50%);
    width: 76px; height: 76px; border-radius: 50%;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5.5v13l11-6.5z' fill='%235b3df5'/%3E%3C/svg%3E") 56% 50% / 30px no-repeat;
    box-shadow: 0 0 0 14px rgba(255, 255, 255, .18);
  }
}

/* Article (blog, guide, comparison, case study) */
.article { max-width: var(--read); margin: 0 auto; padding: 0 24px 80px; }
.article-head { padding: 32px 0 28px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.article-head h1 { font-size: clamp(32px, 4.6vw, 48px); font-weight: 800; margin-bottom: 16px; }
.byline { font-size: 14px; color: var(--ink-soft); }
.byline::before {
  content: ""; display: inline-block; vertical-align: middle; position: relative; top: -1px;
  width: 24px; height: 24px; border-radius: 50%; margin-right: 8px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
}
.byline a { font-weight: 600; text-decoration: none; color: var(--ink); }
.byline time { font-variant-numeric: tabular-nums; }

.prose > * + * { margin-top: 20px; }
.prose h2 { font-size: 28px; font-weight: 800; margin-top: 56px; }
.prose > h2::before, .band .container > h2::before {
  content: ""; display: block; width: 36px; height: 4px; border-radius: 4px; margin-bottom: 16px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}
.prose h3 { font-size: 20px; margin-top: 36px; }
.prose p, .prose li { font-size: 18px; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--brand); font-weight: 700; }
.prose a {
  color: var(--brand); text-decoration: underline;
  text-decoration-color: rgba(91, 61, 245, .35); text-decoration-thickness: 1.5px; text-underline-offset: 3px;
}
.prose a:hover { color: var(--brand-dark); text-decoration-color: currentColor; }
.prose strong { color: var(--ink); }
.prose blockquote { border-left: 4px solid var(--accent); padding: 4px 0 4px 20px; color: var(--ink-soft); font-style: italic; }
figure figcaption { font-size: 14px; color: var(--ink-soft); margin-top: 10px; }
.prose video, .prose img, .card video, .card img { border-radius: 14px; }
.prose figure video, .prose figure img { border: 1px solid var(--line); box-shadow: var(--shadow); background: #0e1222; }

/* The direct answer AI engines and featured snippets lift. Keep it 40-60 words. */
.answer {
  position: relative;
  background: linear-gradient(#fff, #fff) padding-box,
              linear-gradient(135deg, var(--brand), var(--accent)) border-box;
  border: 2px solid transparent;
  border-radius: 18px;
  padding: 22px 26px;
  box-shadow: 0 14px 40px rgba(91, 61, 245, .12);
}
.answer p { font-size: 18px; }
.answer strong:first-child {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-soft);
  padding: 4px 10px; border-radius: 999px; margin-bottom: 10px;
}
.answer strong:first-child::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.answer > p > strong:first-child { display: flex; width: fit-content; }

.toc { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; }
.toc h2 { font-size: 13px !important; margin: 0 0 10px !important; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.toc h2::before { display: none !important; }
.toc ol { padding-left: 20px; columns: 2; column-gap: 32px; }
.toc li { font-size: 15px !important; margin: 0 0 6px !important; break-inside: avoid; }
.toc li::marker { color: var(--ink-soft); font-weight: 500; }
.toc a { color: var(--ink) !important; text-decoration: none !important; }
.toc a:hover { color: var(--brand) !important; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--bg-soft); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); }
tbody th { font-weight: 600; }
tbody tr:last-child > * { border-bottom: none; }
tbody tr:nth-child(even) > * { background: #fbfbfe; }
td.us, th.us { background: var(--brand-soft) !important; font-weight: 600; color: var(--ink); }
tr > .us:first-child { box-shadow: inset 4px 0 0 var(--brand); }

/* Numbered steps: ordered lists in sections and articles */
.band ol:not(.toc ol), .prose > ol {
  list-style: none; padding-left: 0; counter-reset: step; display: grid; gap: 12px;
}
.band ol:not(.toc ol) > li, .prose > ol > li {
  counter-increment: step; position: relative; margin: 0;
  padding: 16px 20px 16px 66px; background: #fff;
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm);
}
.band ol:not(.toc ol) > li::before, .prose > ol > li::before {
  content: counter(step); position: absolute; left: 18px; top: 15px;
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), #7b61ff); color: #fff; font-weight: 700; font-size: 15px;
}

/* Sections on service/pricing pages */
.band { padding: 80px 0; background: var(--bg); }
.band.soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band.soft + .band.soft { border-top: none; }
.band h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; margin-bottom: 14px; }
.band .intro { color: var(--ink-soft); font-size: 18px; max-width: 680px; margin-bottom: 36px; }
.band .container > p { max-width: 760px; }
.band .container > p + p, .band .container > p + ol, .band .container > ol + p { margin-top: 16px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d6d2fb; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { color: var(--brand); }
.card p { color: var(--ink-soft); }
.card p + p { margin-top: 10px; }
.card ul { list-style: none; display: grid; gap: 8px; margin: 14px 0; }
.card ul li { position: relative; padding-left: 28px; }
.card ul li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312c99b' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.cards .card::before {
  content: ""; position: absolute; top: -1px; left: 28px; right: 28px; height: 3px;
  border-radius: 0 0 3px 3px; background: linear-gradient(90deg, var(--brand), var(--accent));
  opacity: 0; transition: opacity .18s ease;
}
.cards .card:hover::before { opacity: 1; }

/* The one price card on /pricing */
.price-card {
  max-width: 560px; padding: 32px;
  background: linear-gradient(#fff, #fff) padding-box,
              linear-gradient(135deg, var(--brand), var(--accent)) border-box;
  border: 2px solid transparent; box-shadow: 0 24px 60px rgba(91, 61, 245, .16);
}
.price-card:hover { transform: none; }

/* FAQ */
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 0; margin-top: 10px; box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.faq details[open] { border-color: #d6d2fb; box-shadow: var(--shadow); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 22px; font-weight: 700; font-size: 17px; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: var(--brand-soft); color: var(--brand);
  font-weight: 700; font-size: 18px; line-height: 1; transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > :not(summary) { padding: 0 22px 18px; margin-top: 0; color: var(--ink-soft); font-size: 17px; }
.faq details > p + p { padding-top: 0; }

/* Author */
.author {
  display: flex; gap: 16px; align-items: center;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; margin-top: 56px;
}
.author img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; overflow: hidden; color: transparent; font-size: 0; background: linear-gradient(135deg, var(--brand), var(--accent)); }
.author p { font-size: 15px !important; color: var(--ink-soft); }
.author strong { color: var(--ink); }

/* Related links */
.related { margin-top: 56px; }
.related h2 { font-size: 22px !important; margin-top: 0 !important; }
.related h2::before { display: none !important; }
.related ul { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 16px; }
.related li { margin: 0 !important; font-size: 16px !important; }
.related a {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; height: 100%;
  padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
  font-weight: 600; color: var(--ink) !important; text-decoration: none !important;
  transition: border-color .15s ease, transform .15s ease;
}
.related a::after { content: "→"; color: var(--brand); transition: transform .15s ease; }
.related a:hover { border-color: var(--brand); transform: translateY(-2px); }
.related a:hover::after { transform: translateX(3px); }

/* Closing call to action (footer partial) */
.cta-band { padding: 24px 24px 88px; }
.cta-band .container {
  max-width: calc(var(--max) - 48px); text-align: center; color: #fff;
  border-radius: 28px; padding: 64px 32px;
  background:
    radial-gradient(520px 260px at 12% 0%, rgba(91, 61, 245, .55), transparent 70%),
    radial-gradient(480px 260px at 92% 100%, rgba(18, 201, 155, .3), transparent 70%),
    var(--ink);
}
.cta-band h2 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; margin-bottom: 10px; }
.cta-band p { color: #c9cbe0; margin-bottom: 28px; font-size: 18px; }
.cta-band .btn-primary { box-shadow: 0 10px 30px rgba(91, 61, 245, .5); }

/* Footer */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 56px 0 28px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot-tag { color: var(--ink-soft); margin-top: 10px; max-width: 300px; }
.site-footer nav { display: flex; flex-direction: column; gap: 8px; }
.site-footer h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); margin-bottom: 4px; }
.site-footer nav a, .foot-base a { text-decoration: none; }
.site-footer nav a:hover, .foot-base a:hover { color: var(--brand); }
.foot-base { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-soft); }
.foot-base span { display: flex; gap: 16px; }

@media (max-width: 900px) {
  .nav-links, .nav > .btn { display: none; }
  .menu-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav-links.open a { padding: 14px 24px; border-top: 1px solid var(--line); }
  .nav-links.open a[aria-current]::after { display: none; }
  .cards { grid-template-columns: 1fr !important; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .band { padding: 60px 0; }
  .page-hero figure { margin-top: 36px !important; }
}
@media (max-width: 560px) {
  .container, .article { padding-left: 16px; padding-right: 16px; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-base { flex-direction: column; }
  .prose p, .prose li { font-size: 17px; }
  .toc ol { columns: 1; }
  .facts > div { min-width: 0; flex: 1 1 40%; }
  .cta-band .container { border-radius: 20px; padding: 48px 20px; }
  .band ol:not(.toc ol) > li, .prose > ol > li { padding-left: 58px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* "Not included" lists: a muted cross instead of the green check */
.card ul.not-included li::before {
  background: #fdecee url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d64555' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* Initials avatar until a team photo exists (swap the span for an <img>) */
.author .avatar {
  flex: none; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff; font-weight: 800; font-size: 18px; letter-spacing: .02em;
}
.author h3 { font-size: 18px; margin: 0 0 4px !important; }
.author > div > p { margin-top: 0 !important; }
.prose > h2 + .author { margin-top: 20px; }
