/* Global Virtual Assist */
@font-face {
  font-family: "Inter Tight";
  src: url("../fonts/InterTight-var-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1a1a1c;
  --muted: #5b6270;
  --bg: #fcfcfd;
  --bg-soft: #f4f5f8;
  --bg-dark: #070b10;
  --panel-dark: #13171e;
  --stroke: #dfe4eb;
  --stroke-dark: #2a333e;
  --on-dark: #fcfcfc;
  --on-dark-muted: #aab2c0;
  --primary: #864ffe;
  --primary-deep: #6a2fe0;
  --primary-soft: #ece8ff;
  --yellow: #fdf7bc;
  --green: #c6f56f;
  --cyan: #83e7ee;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow: 0 18px 50px -24px rgba(19, 23, 30, .28);
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -.02em; line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.25rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); line-height: 1.16; }
h3 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.section { padding-block: clamp(64px, 9vw, 112px); }
.section--soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 1.125rem; }

.pill {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--yellow);
  font-size: .875rem;
  font-weight: 500;
  margin-bottom: 18px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-dark);
  font: inherit;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px); background: var(--primary-deep); border-color: var(--primary-deep); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--stroke); }
.btn--ghost:hover { background: #fff; color: var(--primary-deep); border-color: var(--primary); }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { background: var(--green); border-color: var(--green); color: var(--ink); }
.btn--small { padding: 9px 18px; font-size: .9375rem; }
.btn--block { width: 100%; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(252, 252, 253, .86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck { border-bottom-color: var(--stroke); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 1.25rem; font-weight: 500; letter-spacing: -.02em; text-decoration: none; }
.logo svg { width: 36px; height: 36px; flex: none; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: var(--muted); font-size: 1rem; text-decoration: none; transition: color .15s ease; }
.nav a:not(.btn):hover, .nav a[aria-current="page"]:not(.btn) { color: var(--ink); }
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--stroke);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.menu-toggle svg { width: 20px; height: 20px; }

/* Hero */
.hero { position: relative; padding-top: clamp(48px, 8vw, 96px); text-align: center; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  inset: -20% 0 auto;
  height: 620px;
  background:
    radial-gradient(40% 50% at 22% 40%, rgba(165, 133, 255, .22), transparent 70%),
    radial-gradient(36% 46% at 80% 30%, rgba(131, 231, 238, .24), transparent 70%);
  pointer-events: none;
}
.hero > .wrap { position: relative; }
.hero h1 { max-width: 880px; margin-inline: auto; }
.hero-lead { max-width: 620px; margin: 22px auto 0; color: var(--muted); font-size: clamp(1.0625rem, 2vw, 1.25rem); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.hero-notes { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin-top: 22px; color: var(--muted); font-size: .9375rem; }
.hero-frame {
  position: relative;
  margin-top: clamp(40px, 6vw, 64px);
  padding: 10px 10px 0;
  border: 1px solid var(--stroke);
  border-bottom: 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: #fff;
}
.hero-frame img { width: 100%; aspect-ratio: 16 / 8.2; object-fit: cover; object-position: 50% 28%; border-radius: 20px 20px 0 0; }
.tick {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236a2fe0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Dark glow panel */
.glow-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 56px;
  align-items: center;
  padding: clamp(32px, 5vw, 56px);
  border-radius: var(--radius-lg);
  background: var(--bg-dark);
  color: var(--on-dark);
}
.glow-panel::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -300px;
  width: min(860px, 140%);
  height: 480px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(131, 231, 238, .75), rgba(134, 79, 254, .42) 58%, transparent);
  pointer-events: none;
}
.glow-panel > * { position: relative; }
.glow-panel h2, .glow-panel h3 { font-size: clamp(1.625rem, 3vw, 2.25rem); line-height: 1.2; }
.glow-panel p { margin-top: 14px; color: var(--on-dark-muted); }
.glow-panel .btn { margin-top: 24px; }

.checks { display: grid; gap: 14px; }
.checks li { display: flex; align-items: flex-start; gap: 12px; }
.checks .tick { margin-top: 1px; }
.glow-panel .tick { background-color: rgba(255, 255, 255, .92); }

/* Services */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.service {
  padding: 26px 24px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: #fff;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--primary-soft); }
.service svg { width: 40px; height: 40px; padding: 9px; margin-bottom: 18px; border-radius: 12px; background: var(--primary-soft); color: var(--primary-deep); }
.service p { margin-top: 8px; color: var(--muted); font-size: 1rem; line-height: 1.5; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split + .split { margin-top: clamp(56px, 8vw, 96px); }
.split img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius-lg); }
.split--flip .split-media { order: 2; }
.split-copy > p { margin-top: 16px; color: var(--muted); }
.split-copy .checks { margin-top: 24px; }
.split-copy .btn { margin-top: 28px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { padding: 28px 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--stroke); counter-increment: step; }
.step::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--on-dark);
  font-weight: 500;
}
.step p { margin-top: 8px; color: var(--muted); }

/* Compact plan tiles (home) */
.plan-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.plan-tile {
  display: flex;
  flex-direction: column;
  padding: 22px 18px 18px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: #fff;
}
.plan-tile h3 { font-size: 1.0625rem; }
.plan-tile .price { margin-top: 10px; font-size: 2.25rem; font-weight: 500; letter-spacing: -.02em; line-height: 1.1; }
.plan-tile .sub { flex: 1; margin: 6px 0 16px; color: var(--muted); font-size: .9375rem; line-height: 1.35; }
.plan-more { margin-top: 28px; text-align: center; color: var(--muted); }
.plan-more a { color: var(--primary-deep); font-weight: 500; }

/* Pricing page */
.page-hero { padding-block: clamp(48px, 7vw, 88px) clamp(32px, 4vw, 48px); text-align: center; }
.page-hero p { max-width: 620px; margin: 18px auto 0; color: var(--muted); font-size: 1.125rem; }
.trial-panel { grid-template-columns: 1.5fr 1fr; margin-bottom: 32px; }
.trial-buy { text-align: right; }
.trial-buy .price { font-size: clamp(2.75rem, 6vw, 4rem); font-weight: 500; letter-spacing: -.03em; line-height: 1; }
.trial-buy .sub { margin-top: 6px; }
.trial-buy .btn { margin-top: 18px; }
.plan-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px 24px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: #fff;
}
.plan-card--best { border: 2px solid var(--primary); padding: 27px 23px 23px; box-shadow: var(--shadow); }
.plan-badge {
  position: absolute;
  top: -13px;
  left: 22px;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: .8125rem;
  font-weight: 500;
}
.plan-card .price { margin-top: 12px; font-size: 3rem; font-weight: 500; letter-spacing: -.03em; line-height: 1.05; }
.plan-card .per { margin-top: 4px; color: var(--muted); font-size: 1rem; }
.plan-card .save { min-height: 1.6em; margin-top: 2px; color: var(--primary-deep); font-size: 1rem; font-weight: 500; }
.plan-card .checks { flex: 1; gap: 10px; margin: 20px 0 24px; font-size: 1rem; }
.fineprint { margin-top: 24px; color: var(--muted); font-size: .9375rem; text-align: center; }

/* FAQ */
.faq { max-width: 800px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--stroke); border-radius: 16px; background: #fff; }
.faq summary {
  position: relative;
  padding: 18px 54px 18px 22px;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 11px;
  height: 11px;
  margin-top: -8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details p { padding: 0 22px 20px; color: var(--muted); }

/* Footer */
.site-footer { padding-block: 56px 28px; background: var(--bg-dark); color: var(--on-dark-muted); font-size: 1rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-footer .logo { color: var(--on-dark); }
.footer-grid h3 { margin-bottom: 12px; color: var(--on-dark); font-size: 1rem; }
.footer-grid li + li { margin-top: 8px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: #fff; }
.footer-about { max-width: 380px; margin-top: 14px; }
.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--stroke-dark);
  font-size: .9375rem;
}

/* Legal and simple pages */
.prose { max-width: 760px; margin-inline: auto; padding-block: clamp(40px, 6vw, 72px) clamp(64px, 8vw, 96px); }
.prose h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); }
.prose .updated { margin-top: 12px; color: var(--muted); }
.prose h2 { margin-top: 40px; font-size: 1.5rem; line-height: 1.3; letter-spacing: -.01em; }
.prose p, .prose ul { margin-top: 12px; color: #3b4150; }
.prose ul { padding-left: 20px; list-style: disc; }
.prose li + li { margin-top: 6px; }
.prose a { color: var(--primary-deep); }
.center-page { min-height: 60vh; display: grid; place-items: center; padding-block: 72px; text-align: center; }
.center-page p { max-width: 560px; margin: 16px auto 0; color: var(--muted); }
.center-page .hero-actions { margin-top: 28px; }
.next-steps { max-width: 560px; margin: 28px auto 0; text-align: left; }

/* Scroll reveal, only when JS is running */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 1080px) {
  .service-grid, .plan-cards { grid-template-columns: repeat(2, 1fr); }
  .plan-tiles { grid-template-columns: repeat(3, 1fr); }
  .plan-card--best { order: -1; }
}

@media (max-width: 860px) {
  .menu-toggle { display: grid; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 16px 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--stroke);
    box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 11px 4px; font-size: 1.125rem; }
  .nav .btn { margin-top: 8px; }
  .glow-panel, .trial-panel, .split, .steps, .footer-grid { grid-template-columns: 1fr; }
  .split--flip .split-media { order: 0; }
  .trial-buy { text-align: left; }
  .hero-frame img { aspect-ratio: 4 / 3; object-position: 70% 30%; }
}

@media (max-width: 560px) {
  .service-grid, .plan-cards { grid-template-columns: 1fr; }
  .plan-tiles { grid-template-columns: repeat(2, 1fr); }
  .plan-tile:first-child { grid-column: 1 / -1; }
  .hero-actions .btn { width: 100%; }
  .logo { font-size: 1.125rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .service { transition: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
