/* Maronly — shared styles */
:root {
  --blue: #2464d7;          /* brand primary — every blue on the site */
  --blue-hover: #1d52b3;    /* same hue, darker, for button hover */
  --blue-soft: rgba(36, 100, 215, 0.25);
  --line: #e3e3e3;
  --line-strong: #cccccc;
  --border: #adadad;
  --ink: #000000;
  --ink-soft: #222222;
  --muted: #a1a1a1;
  --font-display: "Montserrat", sans-serif;
  --font-brand: "Comfortaa", sans-serif;
  --font-body: "Figtree", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

/* ---------- Appear-on-load animation (mirrors Framer "appear" effects) ---------- */
.appear {
  opacity: 0;
  transform: translateY(16px);
  animation: appear 0.9s var(--ease-out) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes appear { to { opacity: 1; transform: none; } }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  margin: 0 auto;
  z-index: 50;
  width: min(1260px, calc(100% - 32px));
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 73px;
  padding: 0 10px 0 33px;
  border: 1px solid var(--border);
  border-radius: 67px;
  background: rgba(255, 255, 255, 0.43);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-brand); font-size: 26px; letter-spacing: -0.2px; }
.brand img { width: 36px; height: 36px; }
.nav-links { display: flex; align-items: center; gap: 32px; font-family: var(--font-brand); font-size: 17px; }
.nav-links a:not(.btn) { transition: color 0.2s ease; }
.nav-links a:not(.btn):hover,
.nav-links a[aria-current="page"] { color: var(--blue); }
.nav-sep { width: 1px; height: 28px; background: var(--border); }
.nav-toggle { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; position: relative; width: 16px; height: 2px; border-radius: 2px; background: var(--ink-soft);
  transition: transform 0.3s var(--ease-out), background 0.2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }
.site-header.open .nav-toggle span { background: transparent; }
.site-header.open .nav-toggle span::before { transform: translateY(5px) rotate(45deg); }
.site-header.open .nav-toggle span::after { transform: translateY(-5px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 34px;
  height: 50px;
  border-radius: 30px;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
  font-family: var(--font-brand);
  font-size: 18px;
  white-space: nowrap;
  transition: background 0.25s ease, transform 0.25s var(--ease-out), box-shadow 0.25s ease;
}
.btn:hover { background: var(--blue-hover); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(36, 100, 215, 0.28); }
.btn:active { transform: translateY(0); }
.btn-lg { height: 57px; padding: 0 33px; font-size: 20px; }
.btn-xl { height: 81px; padding: 0 44px; font-size: 24px; border-radius: 999px; }

/* ---------- Layout ---------- */
main { padding-top: 132px; }
.container { width: min(1200px, calc(100% - 32px)); margin: 0 auto; }
.page-title { margin: 0; text-align: center; font-family: var(--font-display); font-weight: 400; font-size: 40px; line-height: 1.4; }

/* ---------- Home: hero ---------- */
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; }
.eyebrow { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 1.2; color: var(--blue); }
.hero-title { margin: 28px 0 0; font-family: var(--font-display); font-weight: 500; font-size: 37px; line-height: 1.4; letter-spacing: -0.01em; }
.hero-title .line2 { display: inline-flex; align-items: center; gap: 12px; }
.clay { width: 111px; height: auto; }
/* the Clay image has empty space on its left; pull it in so the + sits evenly between words and logo */
.hero-title .line2 a { margin-left: -12px; }
.clay.appear { --d: 0.4s; }

.trusted { margin-top: 32px; width: min(640px, 100%); }
.trusted-label { margin: 0 0 8px; font-family: var(--font-display); font-weight: 300; font-size: 13px; }
.marquee { position: relative; height: 60px; overflow: hidden; border-radius: 8px; }
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; z-index: 2; width: 32px; height: 100%; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(to right, #fff 60%, rgba(255, 255, 255, 0)); }
.marquee::after { right: 0; background: linear-gradient(to left, #fff 60%, rgba(255, 255, 255, 0)); }
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee-set { display: flex; align-items: center; gap: 102px; padding-right: 102px; }
.marquee-set img {
  height: 60px; width: auto; object-fit: contain;
  opacity: 0.8; filter: grayscale(1) brightness(0.7);
}

.video {
  position: relative;
  margin-top: 46px;
  width: min(907px, 100%);
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border);
  border-radius: 30px;
  overflow: hidden;
}
.video iframe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; }
.video-overlay {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(0, 0, 0, 0.58);
}
.video-overlay[hidden] { display: none; }
.unmute {
  display: inline-flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 18px; border-radius: 999px;
  background: rgba(18, 18, 18, 0); color: #fff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 14px; letter-spacing: -0.01em; line-height: 1;
  white-space: nowrap;
}
.unmute svg { display: block; width: 18px; height: 18px; color: var(--blue); }

.hero-cta { margin: 56px 0 160px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line-strong); padding: 28px 16px 25px; text-align: center; }
.footer-cols { display: inline-flex; gap: 40px; text-align: left; font-family: var(--font-display); font-size: 16px; font-weight: 300; line-height: 1.2; }
.footer-cols h3 { margin: 0 0 10px; font-size: 16px; font-weight: 600; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-cols a { transition: color 0.2s ease; }
.footer-cols a:hover { color: var(--blue); }
.copyright { margin: 34px 0 0; font-family: var(--font-display); font-weight: 400; font-size: 14px; line-height: 1.2; color: rgba(0, 0, 0, 0.35); }

/* ---------- Process ---------- */
.process-page .page-title:first-child { margin-top: 20px; }
.lede { max-width: 820px; margin: 30px auto 0; text-align: center; font-family: var(--font-display); font-size: 18px; line-height: 1.5; color: #333; }
.steps { display: grid; grid-template-columns: repeat(2, 426px); justify-content: center; gap: 28px 46px; margin-top: 40px; }
.step {
  position: relative; height: 390px; padding: 14px; overflow: hidden;
  border: 2px solid var(--line); border-radius: 25px; background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}
.pill { display: inline-block; padding: 4px 7px; border: 1px solid var(--ink-soft); border-radius: 30px; background: rgba(242, 242, 242, 0.8); font-family: var(--font-body); font-size: 11px; }
.step h2 { margin: 18px 0 0; font-family: var(--font-display); font-weight: 400; font-size: 22px; }
.step p { margin: 14px 0 0; font-family: var(--font-body); font-size: 15px; line-height: 1.5; letter-spacing: -0.1px; }
.illus { position: absolute; left: 0; right: 0; bottom: 18px; height: 215px; display: flex; align-items: center; justify-content: center; }

/* Avatar chip used in illustrations */
.chip {
  width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center; color: var(--blue);
}
.chip svg { width: 20px; height: 20px; }

/* Step 1: orbit */
.orbit { position: relative; width: 175px; height: 175px; }
.ring { position: absolute; border-radius: 50%; border: 1px solid var(--line-strong); }
.ring-outer { inset: 0; }
.ring-inner { inset: 33px; }
/* avatars sit at the orbit centre; site.js moves them around their ring without rotating them */
.orbit .chip { position: absolute; left: 50%; top: 50%; z-index: 1; margin: -16px 0 0 -16px; will-change: transform; }
.orbit .hub { position: absolute; left: 50%; top: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; background: #fff; border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; }
.orbit .hub img { width: 22px; height: 23px; }

/* Step 2: email window (fills with copy on first hover, like the original) */
.window { display: flex; flex-direction: column; gap: 3px; width: 221px; height: 142px; border: 1px solid var(--blue); border-radius: 10px; overflow: hidden; background: #fff; }
.window-bar { display: flex; align-items: center; justify-content: flex-end; height: 9%; padding-right: 5px; background: var(--line); color: #fff; }
.window-bar svg { width: 5px; height: 5px; }
.window-row { display: flex; align-items: center; height: 8px; padding-left: 10px; }
.window-row i { height: 100%; border-radius: 21px; background: var(--line); }
.window hr { width: 100%; height: 1px; margin: 0; border: 0; background: var(--line); }
.window-body { display: flex; flex: 1; flex-direction: column; gap: 7px; padding: 10px 10px 3px; }
.window-body span { display: block; width: 0; height: 9px; margin-block: 1.5px; border-radius: 88px; background: var(--blue); transition: width 0.4s cubic-bezier(0.34, 1.3, 0.64, 1); }
.window.filled .window-body span { width: var(--fill); transition: width 0.4s cubic-bezier(0.34, 1.3, 0.64, 1), opacity 0.4s ease; }
/* mouse leaves: lines stay put and slowly fade out */
.window.fading .window-body span { width: var(--fill); opacity: 0; transition: opacity 1.2s ease; }
/* used for one frame to snap lines back to empty before they grow in again */
.window.reset .window-body span { transition: none; }

/* Step 3: automation (three blue streaks run from the envelope to the person) */
.automate { display: flex; align-items: center; }
.tile { width: 92px; height: 87px; border: 1px solid var(--line-strong); border-radius: 21px; display: flex; align-items: center; justify-content: center; color: var(--blue); background: #fff; }
.tile svg { width: 44px; height: 44px; }
.rays { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 9px; width: 90px; }
.rays span { position: relative; height: 6px; overflow: hidden; }
.rays span::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -11px; width: 31px; border-radius: 56px;
  background: linear-gradient(90deg, rgba(36, 100, 215, 0) 0%, rgba(36, 100, 215, 0) 24%, var(--blue) 100%);
  transform: translateX(200px);
}
.rays span:nth-child(1)::before { animation: ray-1 2.9s linear infinite; }
.rays span:nth-child(2)::before { animation: ray-2 4.9s linear infinite; }
.rays span:nth-child(3)::before { animation: ray-3 1.4s linear infinite; }
/* Each streak sweeps 200px in 0.9s, then waits off-track (2s / 4s / 0.5s) before repeating */
@keyframes ray-1 { 0% { transform: translateX(0); } 31.03%, 100% { transform: translateX(200px); } }
@keyframes ray-2 { 0% { transform: translateX(0); } 18.37%, 100% { transform: translateX(200px); } }
@keyframes ray-3 { 0% { transform: translateX(0); } 64.29%, 100% { transform: translateX(200px); } }

/* Step 4: calendar */
.calendar { width: 205px; height: 166px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.calendar-track { display: flex; width: 200%; height: 100%; transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1); }
.calendar-page { width: 50%; }
.calendar.swiped .calendar-track { transform: translateX(-50%); }
/* one-frame reset back to the start (both pages are blank at that moment, so it can't be seen) */
.calendar.snap .calendar-track, .calendar.snap .day.booked::after { transition: none; }
.calendar-head { height: 28px; background: var(--blue); }
.calendar-grid { display: grid; grid-template-columns: repeat(5, 22px); justify-content: center; gap: 5px 11px; padding: 13px 0; }
.day { position: relative; width: 22px; height: 22px; border-radius: 6px; background: var(--line); }
.day.booked::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px;
  border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft);
  opacity: 0; transform: scale(0.4);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.day.booked.on::after { opacity: 1; transform: none; transition: opacity 1.5s ease, transform 1.5s cubic-bezier(0.34, 1.4, 0.64, 1); }

/* FAQ */
.faq-title { margin-top: 110px; font-weight: 500; font-size: 37px; letter-spacing: -0.01em; }
.faqs { width: min(625px, 100%); margin: 30px auto 90px; display: grid; gap: 12px; }
.faq { border: 1px solid var(--line-strong); border-radius: 30px; background: #fff; overflow: hidden; }
.faq-q {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 58px; padding: 18px 16px 18px 20px; text-align: left;
  font-family: var(--font-display); font-weight: 500; font-size: 16px; line-height: 1.4; letter-spacing: -0.02em;
}
.faq-icon { position: relative; flex: none; width: 17px; height: 17px; transition: transform 0.35s var(--ease-out); }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--ink-soft); }
.faq-icon::before { width: 16px; height: 1.5px; margin: -0.75px 0 0 -8px; }
.faq-icon::after { width: 1.5px; height: 16px; margin: -8px 0 0 -0.75px; }
.faq.open .faq-icon { transform: rotate(45deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--ease-out); }
.faq.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { margin: 0 20px; font-family: var(--font-display); font-size: 16px; line-height: 1.6; letter-spacing: -0.02em; color: #666; }
.faq-a p:first-child { margin-top: -2px; }
.faq-a p + p { margin-top: 20px; }
.faq-a p:last-child { margin-bottom: 18px; }

/* ---------- Results ---------- */
.results { display: grid; gap: 100px; margin: 60px auto 0; }
.case, .quote { border: 1px solid var(--line); border-radius: 25px; background: #fff; }
.case { padding: 50px 25px 25px; }
.case-logo { width: var(--w); height: var(--h); object-fit: cover; margin-bottom: 10px; }
.case h2 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1.2; }
.case-desc { margin: 10px 0 0; font-family: var(--font-display); font-size: 14px; line-height: 1.2; }
.case-shot { display: block; width: var(--sw, 850px); max-width: 100%; margin: 16px auto 20px; }
.case-shot.crop { width: calc(100% - 50px); aspect-ratio: 1095 / 255; overflow: hidden; }
.case-shot.crop img { width: 100%; margin-top: -21.5%; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { border: 1px solid var(--line-strong); border-radius: 16px; padding: 22px 16% 26px; min-height: 157px; display: flex; flex-direction: column; justify-content: center; }
.stat.wide { grid-column: 1 / -1; padding-left: 17%; min-height: 137px; }
.stat strong { font-family: var(--font-display); font-weight: 700; font-size: 46px; line-height: 1.2; color: var(--blue); }
.stat.wide strong { font-size: 60px; }
.stat span { margin-top: 3px; font-family: var(--font-display); font-size: 14px; line-height: 1.2; }
.stat.wide span { font-size: 15px; }

/* Wide screens: info | chart | stats in one row (original switches at 1481px) */
@media (min-width: 1481px) {
  .case {
    display: grid; grid-template-columns: 242px 1fr 358px; column-gap: 22px; align-items: center;
    min-height: 385px; padding: 31px 39px 31px 25px;
  }
  .case-info { align-self: start; padding-top: 25px; }
  .case-logo { width: var(--ww); height: var(--wh); }
  .case-shot, .case-shot.shot-wide { width: 492px; height: 285px; margin: 0 auto; object-fit: cover; }
  .case-shot.shot-wide { width: 498px; height: 134px; }
  .case-shot.crop { width: 492px; height: 285px; aspect-ratio: auto; }
  .case-shot.crop img { height: 100%; margin-top: 0; object-fit: cover; }
  .stats { gap: 11px 10px; }
  .stat, .stat.wide { min-height: 156px; justify-content: flex-start; padding: 31px 16px 16px 30px; }
  .stat.wide { padding-left: 59px; }
  .stat span { max-width: 114px; }
  .stat.wide span { max-width: none; }
}

.quote { margin: 0; padding: 22px 24px 38px; text-align: center; }
.quote-mark { width: 44px; height: 32px; margin: 0 auto 12px; color: var(--blue); }
.quote blockquote { margin: 0 auto; max-width: 720px; font-family: var(--font-display); font-style: italic; font-size: 19px; line-height: 1.8; }
.quote blockquote p { margin: 0; }
.quote blockquote p + p { margin-top: 32px; }
.quote b { font-weight: 700; }
.author { display: inline-flex; align-items: center; gap: 10px; margin-top: 36px; text-align: left; }
.author img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
@media (min-width: 1481px) { .author img { width: 74px; height: 74px; } }
.author strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 12px; }
.author em { font-family: var(--font-display); font-size: 12px; }

.closing { text-align: center; margin: 100px 0 170px; }
.closing h2 { margin: 0 0 22px; font-family: var(--font-display); font-weight: 500; font-size: 26px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .steps { grid-template-columns: minmax(0, 426px); }
}

@media (max-width: 809px) {
  .site-header { top: 12px; }
  .nav { position: relative; justify-content: center; height: 56px; padding: 0 16px; }
  .brand { font-size: 22px; }
  .brand img { width: 30px; height: 30px; }
  .nav-toggle { display: inline-flex; position: absolute; right: 14px; top: 8px; }
  .nav-links {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    flex-direction: column; gap: 18px; padding: 24px;
    border: 1px solid var(--line-strong); border-radius: 28px; background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    opacity: 0; transform: translateY(-8px); pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s var(--ease-out);
  }
  .site-header.open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav-sep { width: 40px; height: 1px; }

  main { padding-top: 96px; }
  .eyebrow { font-size: 20px; }
  .hero-title { margin-top: 22px; font-size: 32px; line-height: 1.3; }
  .hero-title .line2 { gap: 8px; }
  .clay { width: 90px; }
  .hero-title .line2 a { margin-left: -7px; }
  .video { margin-top: 36px; }
  .hero-cta { margin: 40px 0 100px; }

  .page-title { font-size: 32px; }
  .process-page .page-title:first-child { margin-top: 20px; }
.lede { font-size: 16px; }
  .step { height: auto; min-height: 390px; }

  .results { gap: 56px; margin-top: 36px; }
  .case { padding: 18px; }
  .case-shot.crop { width: 100%; }
  .stats { grid-template-columns: 1fr; }
  .stat, .stat.wide { min-height: 0; padding: 22px 24px; }
  .stat strong { font-size: 36px; }
  .stat.wide strong { font-size: 44px; }
  .case-shot { width: 100%; }
  .quote blockquote { font-size: 16px; }
  .closing { margin: 70px 0 110px; }
  .btn-xl { height: 64px; font-size: 20px; }
  .site-footer { padding-top: 66px; }
  .footer-cols { flex-direction: column; gap: 31px; }
  .copyright { margin-top: 96px; }
}
