/* Visionary Hubs — translated from design/project/Visionary Hubs.dc.html.
   Sizes in cqw are relative to .page (full page width), or to the nearest
   mockup container inside device frames, exactly as in the prototype. */

/* Palette: Lapis (the design's selected default). The other palettes the
   design offers are below; set data-palette on <html> to switch. */
:root {
  --vh-bg: #f9fbfe;
  --vh-alt: #eef2f8;
  --vh-ink: #111826;
  --vh-muted: #4e5969;
  --vh-line: #dae0e8;
  --vh-accent: #2358cd;
  --vh-deep: #1543a8;
  --vh-soft: #dfecff;
  --vh-accent-ink: #1f50be;

  --font-display: 'Alexandria', system-ui, sans-serif;
  --font-body: 'Readex Pro', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --gutter: clamp(20px, 5cqw, 48px);
  --section-gap: clamp(88px, 12cqw, 160px);
}
:root[data-palette="nile"] {
  --vh-bg: #f7fbf9; --vh-alt: #eaf4ef; --vh-ink: #0c1e1c; --vh-muted: #465a57; --vh-line: #d5e1dc;
  --vh-accent: #007750; --vh-deep: #005d3d; --vh-soft: #d3f2e2; --vh-accent-ink: #006744;
}
:root[data-palette="clay"] {
  --vh-bg: #fcf8f3; --vh-alt: #f6eee5; --vh-ink: #261b16; --vh-muted: #67574e; --vh-line: #e5dad1;
  --vh-accent: #b64925; --vh-deep: #973818; --vh-soft: #fde4d4; --vh-accent-ink: #a33f1e;
}
:root[data-palette="berry"] {
  --vh-bg: #fff8f9; --vh-alt: #fbecee; --vh-ink: #241618; --vh-muted: #655355; --vh-line: #e8dadb;
  --vh-accent: #b32f5c; --vh-deep: #911d47; --vh-soft: #ffe2e8; --vh-accent-ink: #a22651;
}
:root[data-palette="plum"] {
  --vh-bg: #fcf9fe; --vh-alt: #f4edf8; --vh-ink: #1e1822; --vh-muted: #5d5462; --vh-line: #e2dbe5;
  --vh-accent: #7d3f90; --vh-deep: #632c73; --vh-soft: #f5e4fb; --vh-accent-ink: #703581;
}
:root[data-palette="ochre"] {
  --vh-bg: #fef9f4; --vh-alt: #f7efe3; --vh-ink: #21190f; --vh-muted: #605649; --vh-line: #e5ddd1;
  --vh-accent: #935a00; --vh-deep: #774500; --vh-soft: #fce7d3; --vh-accent-ink: #854f00;
}
:root[data-palette="petrol"] {
  --vh-bg: #f5fbfe; --vh-alt: #e5f3f8; --vh-ink: #0e1d22; --vh-muted: #495c62; --vh-line: #d3e1e5;
  --vh-accent: #07657d; --vh-deep: #004e62; --vh-soft: #d3f1fc; --vh-accent-ink: #00596f;
}
:root[data-palette="graphite"] {
  --vh-bg: #f8fafd; --vh-alt: #edf0f6; --vh-ink: #151b25; --vh-muted: #505966; --vh-line: #dbdee3;
  --vh-accent: #2a2e34; --vh-deep: #181b20; --vh-soft: #e7eaef; --vh-accent-ink: #21242a;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--vh-bg);
  color: var(--vh-ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ul, ol { margin: 0; }
a { color: var(--vh-accent-ink); text-decoration: none; }
a:hover { color: var(--vh-deep); }
button { font: inherit; }
img { display: block; }
::selection { background: var(--vh-soft); }
:focus-visible { outline: 2px solid var(--vh-accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.page { container: page / inline-size; min-height: 100vh; }
.wrap { max-width: 1296px; margin-inline: auto; padding-inline: var(--gutter); }
.icon { flex: none; display: block; fill: currentColor; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; font-weight: 500; white-space: nowrap;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--vh-accent); color: #fff; }
.btn-primary:hover { background: var(--vh-deep); color: #fff; }
.btn-outline { border: 1.5px solid var(--vh-ink); color: var(--vh-ink); }
.btn-outline:hover { background: var(--vh-alt); color: var(--vh-ink); }
.btn-lg { gap: 12px; height: 60px; padding-inline: 24px 28px; font-size: 18px; }
.btn-lg .icon { width: 22px; height: 22px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in oklab, var(--vh-bg) 86%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--vh-line);
}
.site-header .wrap { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark {
  font-family: var(--font-display); font-weight: 600; font-size: 20px;
  letter-spacing: -0.025em; color: var(--vh-ink); white-space: nowrap;
}
.wordmark:hover { color: var(--vh-ink); }
.header-end { display: flex; align-items: center; gap: 32px; }
.main-nav { display: none; align-items: center; gap: 32px; font-size: 16px; }
.main-nav a { color: var(--vh-ink); }
.main-nav a:hover { color: var(--vh-accent-ink); }
.header-cta { display: none; gap: 10px; height: 44px; padding-inline: 16px 20px; font-size: 15px; }
.header-cta .icon { width: 18px; height: 18px; }
.header-pricing { font-size: 15px; font-weight: 500; color: var(--vh-ink); padding-block: 12px; }
@container page (min-width: 760px) {
  .header-cta { display: inline-flex; }
  .header-pricing { display: none; }
}
@container page (min-width: 980px) {
  .main-nav { display: flex; }
}

section { scroll-margin-top: 68px; }

.section-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(32px, 4.6cqw, 56px); line-height: 1.06; letter-spacing: -0.03em;
}

/* ---------- Device mockups ---------- */
.mock { container-type: inline-size; }
.mock-stage { position: relative; aspect-ratio: 16 / 9; }
.browser {
  position: absolute; inset-inline-start: 0; top: 0; width: 84%;
  background: #fff; border-radius: 1.4cqw 1.4cqw 0 0; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 3cqw 7cqw -3cqw rgba(0,0,0,.28);
}
.hero-shot .browser { box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 3cqw 7cqw -3cqw rgba(0,0,0,.3); }
.browser-bar {
  height: 4.4cqw; display: flex; align-items: center; gap: 0.9cqw; padding-inline: 1.8cqw;
  background: #f2f3f3; border-bottom: 1px solid rgba(0,0,0,.06);
}
.browser-dot { width: 1.1cqw; height: 1.1cqw; border-radius: 50%; background: #d6d9d8; }
.browser-url {
  margin-inline-start: 2cqw; flex: 0 1 44%; height: 2.6cqw;
  display: flex; align-items: center; padding-inline: 1.4cqw; border-radius: 99px;
  background: #fff; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
  font-family: var(--font-mono); font-size: max(8px, 1.3cqw); color: #6d7271;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.browser-url.is-long { flex-basis: 60%; }
.screen { position: relative; }
.browser .screen { aspect-ratio: 16 / 10; }
.screen img { position: absolute; top: 0; left: 0; width: 100%; height: auto; will-change: transform; }
.phone {
  position: absolute; inset-inline-end: 2%; bottom: -7%; width: 23%;
  padding: 0.9cqw; background: #151515; border-radius: 4cqw;
  box-shadow: 0 3cqw 6cqw -2cqw rgba(0,0,0,.4);
}
.phone .screen { aspect-ratio: 9 / 19.5; border-radius: 3.2cqw; overflow: hidden; background: #fff; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(48px, 8cqw, 104px); }
.hero h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(34px, 6.3cqw, 80px); line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance;
}
.accent { color: var(--vh-accent-ink); }
.hero-sub {
  margin-top: clamp(20px, 2.4cqw, 28px); max-width: 34em;
  font-size: clamp(18px, 1.75cqw, 22px); line-height: 1.55; color: var(--vh-muted); text-wrap: pretty;
}
.hero-sub strong { color: var(--vh-ink); font-weight: 500; }
.hero-actions { margin-top: clamp(28px, 3.4cqw, 40px); display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.hero-actions .btn { box-shadow: 0 14px 28px -16px var(--vh-accent); }
.hero-shot {
  margin-top: clamp(48px, 7cqw, 88px); background: var(--vh-soft);
  border-radius: clamp(20px, 2.6cqw, 32px); overflow: hidden;
  padding: clamp(28px, 6cqw, 80px) clamp(16px, 6cqw, 80px) 0;
}

/* ---------- How it works ---------- */
.how { padding-top: var(--section-gap); }
.steps {
  list-style: none; padding: 0; margin-top: clamp(36px, 5cqw, 64px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 40px 32px;
}
.steps li { position: relative; display: flex; flex-direction: column; gap: 18px; padding-top: 24px; border-top: 1px solid var(--vh-ink); }
.step-grow {
  position: absolute; top: -1px; inset-inline-start: 0; width: 100%; height: 2px; background: var(--vh-accent);
}
.step-num {
  font-family: var(--font-display); font-weight: 500; font-size: clamp(40px, 4.4cqw, 56px);
  line-height: 1; letter-spacing: -0.04em; color: var(--vh-accent-ink);
}
.steps p { max-width: 15em; font-size: clamp(19px, 1.8cqw, 22px); line-height: 1.4; text-wrap: pretty; }

/* ---------- Our work ---------- */
.work { padding-top: var(--section-gap); }
.work-grid {
  margin-top: clamp(36px, 5cqw, 64px); display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: clamp(44px, 5cqw, 64px) 28px;
}
.work-card { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.work-card.is-wide { grid-column: 1 / -1; }
.work-shot {
  background: var(--vh-alt); border-radius: clamp(18px, 2cqw, 26px); overflow: hidden; padding: 7% 7% 0;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.work-shot:hover, .tile-shot:hover { transform: translateY(-6px); }
.work-card.is-wide .work-shot { padding-top: 6%; }
.work-info { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; }
.work-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.kicker { font-size: 14px; font-weight: 500; color: var(--vh-muted); }
.work-card h3 {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 2.2cqw, 28px);
  line-height: 1.2; letter-spacing: -0.02em;
}
.work-summary { margin-top: 4px; max-width: 34em; font-size: 16px; line-height: 1.5; color: var(--vh-muted); text-wrap: pretty; }
.btn-view {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding-inline: 18px;
  border-radius: 999px; border: 1px solid var(--vh-line); background: #fff;
  color: var(--vh-ink); font-size: 15px; font-weight: 500;
}
.btn-view:hover { border-color: var(--vh-ink); color: var(--vh-ink); }

.more { margin-top: clamp(64px, 8cqw, 104px); display: flex; flex-direction: column; gap: clamp(24px, 3cqw, 36px); }
.more > h3 {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 2.4cqw, 30px);
  line-height: 1.2; letter-spacing: -0.02em;
}
.more-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(calc(50% - 14px), 300px), 1fr));
  gap: clamp(32px, 4cqw, 48px) clamp(16px, 2.4cqw, 28px);
}
.tile { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tile-shot {
  position: relative; container-type: inline-size; aspect-ratio: 1 / 1.08; overflow: hidden;
  border-radius: clamp(16px, 1.8cqw, 22px); background: var(--vh-alt);
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.tile-phone {
  position: absolute; top: 10%; left: 50%; transform: translateX(-50%); width: 58%;
  padding: 1.8cqw; background: #151515; border-radius: 8.5cqw;
  box-shadow: 0 5cqw 10cqw -4cqw rgba(0,0,0,.4);
}
.tile-phone .screen { aspect-ratio: 9 / 19.5; border-radius: 7cqw; overflow: hidden; background: #fff; }
.tile-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tile-text .kicker { font-size: 13px; }
.tile h4 {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(17px, 1.7cqw, 20px);
  line-height: 1.25; letter-spacing: -0.015em;
}
.tile-link { margin-top: 6px; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 500; }

/* ---------- Pricing ---------- */
.pricing { padding-top: var(--section-gap); }
.plans {
  margin-top: clamp(36px, 5cqw, 64px); display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; align-items: stretch;
}
.plan {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(28px, 3cqw, 36px); border-radius: 24px; background: #fff; border: 1px solid var(--vh-line);
  transition: transform .3s ease;
}
.plan:hover { transform: translateY(-4px); }
.plan.is-featured { border: 2px solid var(--vh-accent); box-shadow: 0 28px 56px -36px var(--vh-accent); }
.badge {
  position: absolute; top: -14px; inset-inline-start: 28px; display: inline-flex; align-items: center;
  height: 28px; padding-inline: 12px; border-radius: 999px; background: var(--vh-accent);
  color: #fff; font-size: 13px; font-weight: 500;
}
.plan h3 { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -0.02em; }
.price { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.price-cur { font-family: var(--font-display); font-weight: 500; font-size: 18px; color: var(--vh-muted); }
.price-num {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(44px, 4.4cqw, 54px);
  line-height: 1; letter-spacing: -0.035em;
}
.price-unit { font-size: 16px; color: var(--vh-muted); }
.features { list-style: none; padding: 0; margin-top: 28px; display: flex; flex-direction: column; gap: 14px; font-size: 16px; line-height: 1.45; }
.features li { display: flex; gap: 12px; }
.features strong { font-weight: 500; }
.check {
  flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px;
  border-radius: 50%; background: var(--vh-soft);
}
.check::after {
  content: ""; width: 5px; height: 9px; margin-top: -2px;
  border: solid var(--vh-accent-ink); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.plan-foot { margin-top: auto; padding-top: 32px; }
.plan-terms {
  display: flex; flex-direction: column; gap: 8px; padding-top: 20px; border-top: 1px solid var(--vh-line);
  font-size: 15px; line-height: 1.55; color: var(--vh-muted);
}
.plan-terms strong { font-weight: 600; color: var(--vh-ink); }
.plan-cta { margin-top: 24px; display: flex; gap: 10px; height: 52px; font-size: 16px; }
.plan-cta .icon { width: 18px; height: 18px; }
.pricing-notes {
  margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 16px 40px; padding: clamp(22px, 3cqw, 32px); border-radius: 20px; background: var(--vh-alt);
  font-size: 16px; line-height: 1.55; text-wrap: pretty;
}
.pricing-notes strong { font-weight: 600; }

/* ---------- Services + FAQ (side-title layout) ---------- */
.split { display: flex; flex-wrap: wrap; gap: 32px 64px; }
.split > .section-title { flex: 1 1 280px; }
.split-body { flex: 2.2 1 560px; min-width: 0; }
.services { padding-top: var(--section-gap); }
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.service {
  display: flex; flex-direction: column; gap: 10px; padding: clamp(24px, 2.8cqw, 32px);
  border-radius: 20px; border: 1px solid var(--vh-line); background: #fff;
}
.service h3 { font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 1.3; letter-spacing: -0.015em; }
.service p { font-size: 16px; line-height: 1.55; color: var(--vh-muted); }
.service a { font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }

.faq { padding-block: var(--section-gap); }
.faq-list { border-top: 1px solid var(--vh-line); }
.faq-item { border-bottom: 1px solid var(--vh-line); }
.faq-item h3 { font: inherit; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-block: 24px; padding-inline: 0; background: transparent; border: 0; cursor: pointer;
  text-align: start; color: var(--vh-ink); font-family: var(--font-body);
  font-size: clamp(18px, 1.7cqw, 21px); font-weight: 500; line-height: 1.4;
}
.faq-q:hover { color: var(--vh-accent-ink); }
.faq-sign {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--vh-line); font-size: 22px; font-weight: 300; line-height: 1;
  color: var(--vh-accent-ink); transition: transform .25s ease;
}
.faq-item.is-open .faq-sign { transform: rotate(45deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.faq-a > div { overflow: hidden; min-height: 0; }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a p {
  padding-block: 0 26px; padding-inline: 0 56px; max-width: 42em;
  font-size: 17px; line-height: 1.6; color: var(--vh-muted); text-wrap: pretty;
}
/* Without JavaScript every answer is shown. */
.no-js .faq-a { grid-template-rows: 1fr; }
.no-js .faq-sign { display: none; }

/* ---------- Final CTA + footer ---------- */
.final { padding-inline: var(--gutter); }
.final-box {
  max-width: 1200px; margin-inline: auto; display: flex; flex-direction: column; align-items: flex-start;
  gap: clamp(28px, 3.4cqw, 40px); padding: clamp(48px, 8cqw, 112px) clamp(24px, 6cqw, 80px);
  border-radius: clamp(24px, 3cqw, 36px); background: var(--vh-accent); color: #fff;
}
.final h2 {
  max-width: 15em; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(32px, 5.4cqw, 68px); line-height: 1.06; letter-spacing: -0.035em; text-wrap: balance;
}
.btn-light { background: #fff; color: var(--vh-ink); }
.btn-light:hover { background: var(--vh-soft); color: var(--vh-ink); }
.btn-light .icon { color: #25d366; }

.site-footer { padding: clamp(48px, 6cqw, 72px) var(--gutter) clamp(36px, 4cqw, 52px); }
.site-footer > div {
  max-width: 1200px; margin-inline: auto; display: flex; flex-wrap: wrap;
  align-items: flex-end; justify-content: space-between; gap: 24px 48px;
}
.footer-brand { display: flex; flex-direction: column; gap: 6px; }
.footer-brand .wordmark { font-size: 18px; }
.footer-brand span:last-child { font-size: 15px; color: var(--vh-muted); }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; font-size: 16px; }
.footer-links a { display: inline-flex; align-items: baseline; gap: 8px; color: var(--vh-ink); }
.footer-links a:hover { color: var(--vh-accent-ink); }
.footer-links .muted { color: var(--vh-muted); }
.footer-links .placeholder { font-family: var(--font-mono); font-size: 12px; color: var(--vh-muted); }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: sticky; bottom: 0; z-index: 40;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: color-mix(in oklab, var(--vh-bg) 90%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--vh-line);
}
.sticky-cta .btn:hover { transform: none; }
.sticky-cta .btn { display: flex; gap: 12px; height: 56px; font-size: 18px; }
.sticky-cta .icon { width: 22px; height: 22px; }
@container page (min-width: 760px) {
  .sticky-cta { display: none; }
}

/* ---------- Motion (driven by motion.js) ----------
   `.motion` is set on <html> before first paint unless the visitor prefers
   reduced motion; without it everything renders in its final state. */
.motion [data-reveal]:not(.is-revealed) { opacity: 0; transform: translateY(28px); }
.motion [data-reveal]:not(.is-revealed) > [data-grow] { transform: scaleX(0); }
