/* ═══════════════════════════════════════════════════════════════
   UPPERVOX — shared stylesheet (v2, Aivio-style)
   One file for every page. No CDNs: CSP is default-src 'self'.
   Tokens mirror the Aivio AI template: dark violet, gradient accent,
   30px bordered cards, glass pill nav, Urbanist.
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Surfaces — near-black violet */
  --bg:            #0b031d;   /* page base, darkest */
  --bg-hero:       #13072f;   /* hero + alternating section wash */
  --bg-alt:        #100628;   /* cards, boxes */
  --bg-alt-2:      #13072f;   /* alternating section wash */
  --bg-raised:     #1c1333;   /* nested surfaces */
  --bg-soft:       #342b48;   /* secondary card */

  /* Accent — violet gradient */
  --accent:        #8e31e1;
  --accent-deep:   #7300d1;
  --grad:          linear-gradient(to top, #7300d1 0%, #8e31e1 100%);
  --grad-rev:      linear-gradient(to top, #8e31e1 0%, #7300d1 100%);

  /* Type colors */
  --ink:           #ffffff;   /* headline / emphasis */
  --ink-muted:     #cdc5df;   /* h2–h6 default, lavender */
  --body:          #cec6e0;   /* paragraphs */
  --star:          #fbc729;

  /* Lines */
  --line:          rgba(255, 255, 255, .15);
  --line-soft:     rgba(255, 255, 255, .10);

  /* Shape */
  --r-card:        30px;
  --r-pill:        100px;
  --r-nav:         36px;
  --r-media:       20px;
  --r-sm:          10px;

  --glow:          0 12px 24px rgba(142, 49, 225, .10);
  --ease:          .6s ease-in-out;

  --maxw:          1280px;
  --gutter:        clamp(20px, 5vw, 60px);
}

/* ─────────────────────────── Reset ─────────────────────────── */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: 'Urbanist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; cursor: pointer; }

/* Keyboard focus stays visible everywhere. */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ──────────────────────── Typography ───────────────────────── */
/* Aivio's desktop scale is 120/62/36/24/20/18. clamp() keeps the
   same top end while staying readable on a phone. */

h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 500; }

h1 {
  font-size: clamp(44px, 8.6vw, 120px);
  line-height: .94;
  letter-spacing: 1.2px;
  color: var(--ink);
}

h2 {
  font-size: clamp(32px, 5vw, 62px);
  line-height: 1.19;
  letter-spacing: .4px;
  color: var(--ink-muted);
}
/* Aivio emphasises one phrase per H2 by wrapping it in white. */
h2 span, h1 span { color: var(--ink); }

h3 { font-size: clamp(24px, 3vw, 36px); line-height: 1.14; color: var(--ink-muted); }
h4, .h4 { font-size: 24px; line-height: 1.25; letter-spacing: 0; color: var(--ink-muted); }
h5, .h5 { font-size: 20px; line-height: 1.2; letter-spacing: 0; color: var(--ink-muted); }
h1, h2, h3, .h4, .h5 { text-wrap: balance; }
p, .lede { text-wrap: pretty; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

/* Eyebrow label — Aivio's h6, with a dash before it. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  line-height: 1.33;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
  flex: none;
}

.lede { font-size: 18px; line-height: 1.6; max-width: 62ch; }

/* ───────────────────────── Layout ─────────────────────────── */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(56px, 7vw, 104px); }
.section--alt { background: var(--bg-alt-2); }

/* Section header: centered stack — dot eyebrow, H2, one supporting line. */
.section-head {
  text-align: center;
  max-width: 900px;
  margin: 0 auto clamp(40px, 5vw, 64px);
}
.section-head .lede { margin: 20px auto 0; }

.grid { display: grid; gap: clamp(20px, 2.2vw, 30px); }
/* Mobile-first: small breakpoint first so the wider one wins on desktop. */
@media (min-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* Split: media one side, copy the other. */
.split { display: grid; gap: clamp(28px, 4vw, 64px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }

/* ───────────────────────── Buttons ────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  background: var(--grad);
  transition: background var(--ease), transform .25s ease, box-shadow var(--ease), scale .15s ease;
}
.btn:active { scale: .96; }
.btn:hover { background: var(--grad-rev); box-shadow: var(--glow); transform: translateY(-2px); }

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn--ghost:hover {
  background: transparent;
  border-color: var(--accent);
  box-shadow: none;
}

.btn .arr { transition: transform .25s ease; }
.btn:hover .arr { transform: translateX(4px); }

/* 46px circular gradient badge — Aivio's card arrow link. */
.icon-badge {
  width: 46px;
  height: 46px;
  border-radius: var(--r-pill);
  background: var(--grad);
  display: inline-grid;
  place-items: center;
  flex: none;
  transition: background var(--ease), transform .3s ease;
}
a:hover > .icon-badge, .card:hover .icon-badge {
  background: var(--grad-rev);
  transform: rotate(45deg);
}

/* ────────────────────────── Cards ─────────────────────────── */

.card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: clamp(28px, 3.4vw, 49px);
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}
.card:hover {
  border-color: var(--accent);
  box-shadow: var(--glow);
}

.card .h4 { color: var(--ink); margin-bottom: 12px; }
.card p  { font-size: 16px; }

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

/* Price tag inside a card. */
.price {
  font-size: 44px;
  line-height: 1;
  font-weight: 600;
  color: var(--ink);
}
.price small { font-size: 16px; font-weight: 500; color: var(--body); }

/* Featured pricing card carries the gradient edge. */
.card--featured {
  border-color: var(--accent);
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(142, 49, 225, .18) 0%, transparent 60%),
    var(--bg-alt);
}

.tick { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tick li { display: flex; gap: 12px; align-items: flex-start; }
.tick li::before {
  content: "";
  width: 18px; height: 18px;
  flex: none;
  margin-top: 3px;
  border-radius: var(--r-pill);
  background: var(--grad);
  /* small check drawn with a mask so no icon font is needed */
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9.6 16.8 5 12.2l1.4-1.4 3.2 3.2 8-8L19 7.4z'/%3E%3C/svg%3E") center/16px no-repeat, linear-gradient(#000, #000);
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9.6 16.8 5 12.2l1.4-1.4 3.2 3.2 8-8L19 7.4z'/%3E%3C/svg%3E") center/16px no-repeat;
}

/* Small pill label, e.g. "24-hour delivery". */
.tag {
  display: inline-block;
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, .04);
}

/* ─────────────────────────── Hero ─────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(150px, 17vw, 240px);
  padding-bottom: clamp(40px, 5vw, 64px);
  background: var(--bg) url('/assets/bg/hero.webp') center top / cover no-repeat;
}
@media (max-width: 960px) { .hero { background-image: url('/assets/bg/hero-960.webp'); } }
.hero > * { position: relative; }

.hero-inner { text-align: center; max-width: 1000px; margin-inline: auto; }
.hero h1 { margin-bottom: 24px; }
.hero .lede { margin-inline: auto; font-size: 20px; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 34px;
}

/* Stat strip under the hero, justified like Aivio's banner-bottom row. */
.hero-stats {
  display: grid;
  gap: 24px;
  margin-top: clamp(48px, 7vw, 90px);
  padding-top: clamp(28px, 4vw, 44px);
  border-top: 1px solid var(--line-soft);
  grid-template-columns: repeat(2, 1fr);   /* 2x2 on phones */
}
@media (min-width: 720px) { .hero-stats { grid-template-columns: repeat(4, 1fr); } }
.stat b {
  display: block;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.05;
  font-weight: 600;
  color: var(--ink);
}
.stat span { font-size: 15px; color: var(--body); }

/* ──────────────────────── Accordion ───────────────────────── */

.faq { display: grid; gap: 16px; }

.faq details {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 4px clamp(20px, 2.6vw, 34px);
  transition: border-color var(--ease);
}
.faq details[open] { border-color: var(--accent); }

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 24px;
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 34px; height: 34px;
  flex: none;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background:
    linear-gradient(var(--ink), var(--ink)) center/13px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center/2px 13px no-repeat;
  transition: transform .3s ease, background-color .3s ease, border-color .3s ease;
}
.faq details[open] summary::after {
  /* minus sign only */
  background: linear-gradient(var(--ink), var(--ink)) center/13px 2px no-repeat;
  border-color: var(--accent);
  transform: rotate(180deg);
}
.faq .faq-body { padding-bottom: 26px; max-width: 76ch; }

/* ──────────────────────── Media card ──────────────────────── */

.media {
  border-radius: var(--r-media);
  overflow: hidden;
  border: 1px solid var(--line);
}
.media img { width: 100%; object-fit: cover; }

/* Project tile: image with a title row and a gradient arrow badge. */
.tile {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--bg-alt);
  overflow: hidden;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.tile:hover { border-color: var(--accent); box-shadow: var(--glow); }
.tile img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.tile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(20px, 2.4vw, 30px);
}
.tile-row .h4 { color: var(--ink); }
.tile-row div > span { display: block; font-size: 14px; color: var(--body); margin-top: 4px; }

/* ───────────────────── Numbered step list ─────────────────── */
/* The four steps are a real sequence, so they carry real numbers. */

.steps { counter-reset: step; display: grid; gap: clamp(16px, 2vw, 24px); }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.step {
  counter-increment: step;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: clamp(26px, 3vw, 40px);
  transition: border-color var(--ease);
}
.step:hover { border-color: var(--accent); }
.step::before {
  content: "0" counter(step);
  display: block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--accent);
  margin-bottom: 18px;
}
.step .h4 { color: var(--ink); margin-bottom: 10px; }

/* ──────────────────────── CTA band ────────────────────────── */

.cta-band {
  position: relative;
  overflow: hidden;
  text-align: center;
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  padding: clamp(44px, 7vw, 100px) clamp(24px, 4vw, 70px);
  background:
    radial-gradient(70% 120% at 50% 100%, rgba(142, 49, 225, .30) 0%, transparent 70%),
    var(--bg-alt);
}
.cta-band h2 { color: var(--ink); margin-bottom: 18px; }
.cta-band .lede { margin-inline: auto; }
.cta-band .hero-actions { margin-top: 30px; }

/* ───────────────────── Scroll reveal ──────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition-property: opacity, transform, border-color, box-shadow;
  transition-duration: .7s, .7s, .6s, .6s;
  transition-timing-function: ease, ease, ease-in-out, ease-in-out;
  transition-delay: var(--stagger, 0s), var(--stagger, 0s), 0s, 0s;
}
.reveal.is-in { opacity: 1; transform: none; }

/* Cards in a row arrive one after another, 100ms apart, counted per row.
   Phones show one card per row, so no delay there. */
@media (min-width: 640px) {
  :is(.grid--2, .grid--3, .grid--4, .steps) > .reveal:nth-child(2n+2) { --stagger: .1s; }
}
@media (min-width: 980px) {
  :is(.grid--3) > .reveal:nth-child(3n+1) { --stagger: 0s; }
  :is(.grid--3) > .reveal:nth-child(3n+2) { --stagger: .1s; }
  :is(.grid--3) > .reveal:nth-child(3n+3) { --stagger: .2s; }
  :is(.grid--4, .steps) > .reveal:nth-child(4n+1) { --stagger: 0s; }
  :is(.grid--4, .steps) > .reveal:nth-child(4n+2) { --stagger: .1s; }
  :is(.grid--4, .steps) > .reveal:nth-child(4n+3) { --stagger: .2s; }
  :is(.grid--4, .steps) > .reveal:nth-child(4n+4) { --stagger: .3s; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* Screen-reader-only text. */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ─────────────────── Inner-page header ────────────────────── */
/* Big title, one line, breadcrumb pill — Aivio's page banner. */

.page-hero {
  padding: clamp(150px, 17vw, 230px) 0 clamp(70px, 9vw, 120px);
  background: var(--bg) url('/assets/bg/page.webp') center top / cover no-repeat;
}
@media (max-width: 960px) { .page-hero { background-image: url('/assets/bg/page-960.webp'); } }
.page-hero h1 { font-size: clamp(52px, 7.4vw, 104px); margin-bottom: 18px; }
.page-hero p { max-width: 46ch; font-size: 18px; color: var(--ink); }

.crumbs {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  padding: 12px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(0, 0, 0, .25);
  font-size: 14px;
  color: var(--ink);
}
.crumbs a { color: var(--ink-muted); }
.crumbs a:hover { color: var(--ink); }

/* ───────────────────── Light-beam band ────────────────────── */
/* Aivio's "Work With Us": a stage light over a glowing horizon. */

.band-beam {
  text-align: center;
  padding-block: clamp(90px, 11vw, 150px);
  background: var(--bg) url('/assets/bg/beam.webp') center / cover no-repeat;
}
@media (max-width: 960px) { .band-beam { background-image: url('/assets/bg/beam-960.webp'); } }
.band-beam h2 { color: var(--ink); }
.band-beam .hero-actions { margin-top: 30px; }
.band-beam .steps { margin-top: clamp(48px, 6vw, 80px); text-align: left; }
.band-beam .step {
  background: rgba(16, 6, 40, .55);
  backdrop-filter: blur(12px);
}

/* ─────────────────────── Side glows ───────────────────────── */
/* The soft violet blobs Aivio parks on section edges. */

.glow { position: relative; overflow: hidden; }
.glow > .wrap { position: relative; }
.glow::before {
  content: "";
  position: absolute;
  width: 560px; height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(142, 49, 225, .32) 0%, transparent 68%);
  pointer-events: none;
}
.glow--left::before  { left: -300px; top: 22%; }
.glow--right::before { right: -300px; top: 12%; }

/* Final CTA carries the silk art too. */
.cta-band--art {
  background:
    linear-gradient(rgba(11, 3, 29, .35), rgba(11, 3, 29, .55)),
    url('/assets/bg/page-960.webp') center / cover no-repeat;
}

/* Anchor jumps land below the fixed header. */
section[id] { scroll-margin-top: 90px; }

/* ────────────────────────── Forms ─────────────────────────── */

.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 15px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 15px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .03);
  color: var(--ink);
  font: inherit;
  font-size: 16px;               /* 16px stops iOS zooming on focus */
  transition: border-color .25s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select option { background: var(--bg-alt); }
.field input::placeholder, .field textarea::placeholder { color: rgba(206, 198, 224, .5); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.form .btn { justify-self: start; }
.form-note { font-size: 14px; margin: 0; }
.form-note a { color: var(--ink); border-bottom: 1px solid var(--line); }
.hp { display: none; }           /* honeypot: bots fill it, people never see it */

/* Cal.com booking embed */
.cal-embed { min-height: 620px; border-radius: var(--r-media); overflow: hidden; }

/* ─────────────────────── Comparison table ─────────────────── */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--bg-alt); }
.cmp-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 15px; }
.cmp-table th, .cmp-table td { padding: 18px 22px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-soft); }
.cmp-table thead th { color: var(--ink); font-weight: 700; font-size: 16px; }
.cmp-table tbody th { color: var(--ink-muted); font-weight: 500; width: 22%; }
.cmp-table tr:last-child th, .cmp-table tr:last-child td { border-bottom: 0; }
.cmp-table .us { background: rgba(142, 49, 225, .12); color: var(--ink); }
.cmp-table thead .us { background: var(--grad); }

/* Small pill above a card title, e.g. "Recommended". */
.badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: var(--grad);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}
