/* Contact and Contact sales (v2/contact.html, v2/contact-sales.html). Markup: tools/contact_pages.py;
   behaviour: ../js/contact-page.js */
.ctp { --ink: #242426; --sub: #5d5d63; --mute: #68686f; --line: #ececf1; --soft: #f6f5fa; --lav: #efe9ff; --dark: #16151b; --bad: #d23c3c; color: var(--ink); }
.tp-page main.ctp { padding-bottom: 72px; }
.ctp h1, .ctp h2, .ctp h3 { color: var(--ink); }
.ctp svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.ctp .btn > i svg { width: 18px; height: 18px; stroke-width: 2.2; }

/* hero: copy and ways to reach us on the left, the form card on the right */
.ctp-hero { position: relative; isolation: isolate; margin: 86px 30px 0; padding: 40px 0 80px; border-radius: 26px; overflow: hidden; color: #fff;
  background: radial-gradient(50% 75% at 85% 20%, rgba(125, 64, 255, 0.42), rgba(125, 64, 255, 0) 65%), radial-gradient(45% 60% at 5% 115%, rgba(125, 64, 255, 0.22), rgba(125, 64, 255, 0) 70%), #111312; }
.ctp--sales .ctp-hero { padding-bottom: 130px; }
.ctp-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1.5px) 0 0 / 24px 24px; -webkit-mask-image: radial-gradient(55% 75% at 30% 40%, #000, transparent 75%); mask-image: radial-gradient(55% 75% at 30% 40%, #000, transparent 75%); }
.ctp-crumb { display: flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(255, 255, 255, 0.55); }
.ctp-crumb a { color: rgba(255, 255, 255, 0.72); text-decoration: none; } .ctp-crumb a:hover { color: #fff; }
.ctp-crumb b { font-weight: 500; color: #c9b6ff; }
.ctp-hero__grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); align-items: start; gap: 56px; margin-top: 40px; }
.ctp .ctp-hero h1 { margin: 0; font-family: var(--display); font-size: clamp(44px, 5.4vw, 76px); font-weight: 400; line-height: 1.02; letter-spacing: -0.05em; color: #fff; }
.ctp-lead { max-width: 48ch; margin: 20px 0 0; font-size: 18px; line-height: 1.6; color: rgba(255, 255, 255, 0.66); }
/* ways to reach us */
.ctp-rail { display: grid; gap: 4px; margin: 34px 0 0; padding: 8px; border-radius: 22px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); list-style: none; }
.ctp-rail li { display: flex; align-items: center; gap: 14px; padding: 11px 12px; border-radius: 14px; transition: background 0.25s ease; }
.ctp-rail li:hover { background: rgba(255, 255, 255, 0.06); }
.ctp-rail__ic { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 12px; background: rgba(125, 64, 255, 0.28); color: #d9caff; }
.ctp-rail__ic svg { width: 18px; height: 18px; stroke-width: 1.8; }
.ctp-rail b { display: block; font-size: 16px; font-weight: 600; color: #fff; }
.ctp-rail li span > span, .ctp-rail a { display: block; margin-top: 1px; font-size: 15px; color: rgba(255, 255, 255, 0.6); text-decoration: none; }
/* phones: a 27px tap area on the rail links, the padding taken back by the margins */
@media (max-width: 760px) { .ctp-rail a { padding-block: 3px; margin: -2px 0 -3px; } }
.ctp-rail a { color: #c9b6ff; }
.ctp-rail a:hover { color: #fff; }
/* review */
.ctp-quote { margin: 18px 0 0; padding: 22px 24px; border-radius: 22px; background: linear-gradient(160deg, rgba(125, 64, 255, 0.28), rgba(125, 64, 255, 0.08)); box-shadow: inset 0 0 0 1px rgba(201, 182, 255, 0.22); }
.ctp--sales .ctp-quote { margin-top: 34px; }
.ctp-quote__stars { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; font-size: 14px; color: rgba(255, 255, 255, 0.6); }
.ctp-quote__stars b { font-weight: 600; color: #fff; }
.ctp-stars { display: inline-flex; gap: 2px; color: #ffb547; }
.ctp-stars svg { width: 15px; height: 15px; fill: currentColor; stroke: none; }
.ctp-quote blockquote { margin: 14px 0 0; font-family: var(--display); font-size: 21px; font-weight: 500; line-height: 1.35; letter-spacing: -0.02em; color: #fff; }
.ctp-quote blockquote::before { content: "\201C"; } .ctp-quote blockquote::after { content: "\201D"; }
.ctp-quote figcaption { margin-top: 12px; font-size: 14px; color: rgba(255, 255, 255, 0.55); }

/* the form card */
.ctp-form { position: relative; padding: 30px; border-radius: 26px; background: #fff; color: var(--ink); box-shadow: 0 60px 100px -40px rgba(0, 0, 0, 0.9); }
.ctp-form__hd { display: flex; align-items: center; gap: 12px; }
.ctp-form__ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--brand); color: #fff; box-shadow: 0 12px 22px -10px rgba(125, 64, 255, 0.8); }
.ctp-form__ic svg { width: 19px; height: 19px; stroke-width: 1.9; }
.ctp-form__hd b { font-family: var(--display); font-size: 24px; font-weight: 500; letter-spacing: -0.03em; }
.ctp-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; margin-top: 24px; }
.ctp-field { display: flex; flex-direction: column; min-width: 0; margin: 0; }
.ctp-field--full { grid-column: 1 / -1; }
.ctp-field label { margin-bottom: 7px; font-size: 14px; font-weight: 500; color: var(--ink); }
.ctp-opt { font-weight: 400; color: var(--mute); }
.ctp-field input, .ctp-field select, .ctp-field textarea { width: 100%; min-width: 0; border: 0; border-radius: 14px; outline: 0; background: var(--soft); box-shadow: inset 0 0 0 1px transparent; font: inherit; font-size: 15.5px; color: var(--ink); transition: box-shadow 0.2s ease, background 0.2s ease; }
.ctp-field input, .ctp-field select { height: 50px; padding: 0 16px; }
.ctp-field textarea { min-height: 128px; padding: 14px 16px; line-height: 1.55; resize: vertical; }
.ctp-field select { padding-right: 40px; background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8a90' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 16px no-repeat; appearance: none; cursor: pointer; }
.ctp-field select:invalid, .ctp-field select option[value=""] { color: var(--mute); }
.ctp-field input:hover, .ctp-field select:hover, .ctp-field textarea:hover { box-shadow: inset 0 0 0 1px #dcdae6; }
.ctp-field input:focus, .ctp-field select:focus, .ctp-field textarea:focus { background-color: #fff; box-shadow: inset 0 0 0 2px var(--brand), 0 0 0 4px rgba(125, 64, 255, 0.12); }
.ctp-field.is-bad input, .ctp-field.is-bad select, .ctp-field.is-bad textarea { background-color: #fff6f6; box-shadow: inset 0 0 0 1.5px var(--bad); }
.ctp-err { min-height: 0; font-size: 12.5px; color: var(--bad); }
.ctp-err:not(:empty) { margin-top: 6px; }
.ctp-send { width: 100%; margin-top: 22px; border: 0; cursor: pointer; font-family: inherit; }
.ctp-note { margin: 12px 0 0; text-align: center; font-size: 14px; color: var(--mute); }
.ctp-done { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; border-radius: 26px; background: radial-gradient(70% 50% at 50% 0%, rgba(184, 155, 255, 0.35), rgba(184, 155, 255, 0) 70%), #fff; text-align: center; outline: none; animation: ctp-in 0.45s cubic-bezier(0.16, 1, 0.3, 1) both; }
.ctp-done[hidden] { display: none; }
.ctp-done__ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--brand); color: #fff; box-shadow: 0 0 0 10px var(--lav); }
.ctp-done__ic svg { width: 30px; height: 30px; stroke-width: 2.4; }
.ctp-done b { margin-top: 26px; font-family: var(--display); font-size: 28px; font-weight: 500; letter-spacing: -0.035em; }
.ctp-done p { max-width: 34ch; margin: 10px 0 0; font-size: 15.5px; line-height: 1.55; color: var(--sub); }
@keyframes ctp-in { from { opacity: 0; transform: scale(0.98); } }

/* sales: stats over the hero's lower edge */
.ctp-stats-sec { position: relative; z-index: 2; margin-top: -84px; }
.ctp-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ctp-stat { padding: 24px 26px 26px; border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -40px rgba(30, 20, 70, 0.55); }
.ctp-stat__top { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--sub); }
.ctp-stat__ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--lav); color: var(--brand); }
.ctp-stat__ic svg { width: 17px; height: 17px; stroke-width: 1.9; }
.ctp-stat__n { margin: 18px 0 0; font-family: var(--display); font-size: 56px; font-weight: 500; line-height: 1; letter-spacing: -0.05em; }
.ctp-stat__n i { margin: 0 2px; font-style: normal; font-size: 22px; letter-spacing: -0.02em; color: var(--brand); }
.ctp-stat__l { margin: 10px 0 0; font-size: 15px; color: var(--sub); }
.ctp-bar { display: block; height: 6px; margin-top: 20px; border-radius: 99px; background: #f0eef6; overflow: hidden; }
.ctp-bar i { display: block; width: var(--w); height: 100%; border-radius: inherit; background: linear-gradient(90deg, #b99bff, var(--brand)); transform: scaleX(0); transform-origin: left; transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.15s; }
.ctp-stats.is-in .ctp-bar i { transform: none; }

/* sales: what it covers */
.ctp-sec { padding: 104px 0 0; }
.ctp .ctp-h2 { margin: 0; font-family: var(--display); font-size: clamp(30px, 3.4vw, 48px); font-weight: 400; line-height: 1.08; letter-spacing: -0.045em; }
.ctp-cover__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.ctp-cv { display: flex; flex-direction: column; padding: 28px 28px 30px; border-radius: 26px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 24px 48px -42px rgba(30, 20, 70, 0.5); transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease; }
.ctp-cv:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(125, 64, 255, 0.3), 0 30px 50px -34px rgba(60, 30, 140, 0.5); }
.ctp-cv__top { display: flex; align-items: center; justify-content: space-between; }
.ctp-cv__ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--lav); color: var(--brand); }
.ctp-cv__ic svg { width: 22px; height: 22px; stroke-width: 1.8; }
.ctp-cv__tag { padding: 5px 12px; border-radius: 999px; background: var(--soft); font-size: 13px; font-weight: 500; color: var(--sub); }
.ctp .ctp-cv h3 { margin: 22px 0 0; font-family: var(--display); font-size: 24px; font-weight: 500; letter-spacing: -0.035em; }
.ctp-cv > p { margin: 10px 0 0; font-size: 16px; line-height: 1.6; color: var(--sub); }
.ctp-vis { margin-top: auto; padding-top: 24px; }
.ctp-vis--vol, .ctp-vis--steps { display: flex; flex-wrap: wrap; gap: 8px; }
.ctp-vis--vol span, .ctp-vis--steps span { padding: 8px 12px; border-radius: 12px; background: var(--soft); font-size: 13px; font-weight: 500; color: var(--sub); }
.ctp-vis span.is-on { background: var(--lav); color: #6a2fe6; } /* brand purple is 4.4:1 on lavender; this is 5.6:1 */
.ctp-vis--vol span.is-on { background: var(--brand); color: #fff; }
.ctp-vis--steps span + span::before { content: "\2192"; margin-right: 6px; color: #c4c3cc; }
.ctp-vis--wire { display: flex; align-items: center; gap: 10px; }
.ctp-wire__hub { display: grid; place-items: center; flex: none; width: 54px; height: 54px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 10px 20px -12px rgba(30, 20, 70, 0.4); }
.ctp-wire__hub img { width: 30px; height: 30px; object-fit: contain; }
.ctp-wire__line { flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--brand) 0 6px, transparent 6px 11px); }
.ctp-wire__nodes { display: grid; gap: 6px; }
.ctp-wire__nodes b { padding: 6px 12px; border-radius: 10px; background: var(--lav); font-size: 12.5px; font-weight: 600; color: #6a2fe6; text-align: center; } /* brand purple is 4.4:1 on lavender; this is 5.6:1 */
.ctp-cv:first-child { background: radial-gradient(90% 60% at 100% 0%, rgba(125, 64, 255, 0.5), rgba(125, 64, 255, 0) 65%), var(--dark); box-shadow: 0 40px 70px -40px rgba(40, 15, 110, 0.75); }
.ctp .ctp-cv:first-child h3 { color: #fff; }
.ctp-cv:first-child > p { color: rgba(255, 255, 255, 0.66); }
.ctp-cv:first-child .ctp-cv__ic { background: var(--brand); color: #fff; }
.ctp-cv:first-child .ctp-cv__tag, .ctp-cv:first-child .ctp-vis span { background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.8); }
.ctp-cv:first-child .ctp-vis--vol span.is-on { background: var(--brand); color: #fff; }

/* booking: a light panel with the calendar in a white frame */
.ctp-call__panel { padding: 34px 34px 10px; border-radius: 30px; background: radial-gradient(60% 60% at 100% 0%, rgba(184, 155, 255, 0.4), rgba(184, 155, 255, 0) 70%), #f6f3ff; box-shadow: inset 0 0 0 1px rgba(125, 64, 255, 0.1); }
.ctp-call__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 18px; }
.ctp-call__ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--brand); color: #fff; box-shadow: 0 14px 26px -12px rgba(125, 64, 255, 0.8); }
.ctp-call__ic svg { width: 24px; height: 24px; stroke-width: 1.8; }
.ctp-call__head p { max-width: 62ch; margin: 10px 0 0; font-size: 18px; line-height: 1.6; color: var(--sub); }
.ctp-chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ctp-chips li { padding: 8px 14px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px rgba(125, 64, 255, 0.14); font-size: 14px; font-weight: 500; color: var(--brand); }
.ctp-call__cal { margin-top: 28px; border-radius: 22px 22px 0 0; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.ctp-call__cal iframe { display: block; width: 100%; height: 700px; border: 0; }
/* Calendly takes a few seconds to draw its calendar: until it does, a loader (with a direct link)
   shows in its place and the frame fades in when it is ready */
.ctp-call__cal { position: relative; }
.ctp-call__wait { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 140px 24px 0; text-align: center; transition: opacity 0.3s ease, visibility 0.3s; }
.ctp-call__wait p { margin: 6px 0 0; font-size: 16px; color: var(--sub); }
.ctp-call__wait a { font-size: 15px; font-weight: 500; color: var(--brand); text-decoration: none; }
.ctp-call__wait a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ctp-spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--lav, #efe9ff); border-top-color: var(--brand); animation: ctp-spin 0.8s linear infinite; }
@keyframes ctp-spin { to { transform: rotate(360deg); } }
.ctp-call__cal iframe { position: relative; opacity: 0; pointer-events: none; transition: opacity 0.4s ease; }
.ctp-call__cal.is-ready iframe { opacity: 1; pointer-events: auto; }
.ctp-call__cal.is-ready .ctp-call__wait { opacity: 0; visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .ctp-spin { animation-duration: 2.4s; } }

@media (max-width: 1100px) {
  .ctp-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .ctp-form { max-width: 680px; }
  .ctp-cover__grid { grid-template-columns: minmax(0, 1fr); }
  .ctp-call__head { grid-template-columns: auto minmax(0, 1fr); }
  .ctp-chips { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 760px) {
  .ctp-hero { margin: 78px 12px 0; padding: 28px 0 40px; border-radius: 22px; }
  .ctp--sales .ctp-hero { padding-bottom: 100px; }
  .ctp-lead, .ctp-call__head p { font-size: 16px; }
  .ctp-quote blockquote { font-size: 18px; }
  .ctp-form__hd b { font-size: 22px; }
  .ctp-form { padding: 22px 18px; border-radius: 22px; }
  .ctp-form__grid { grid-template-columns: minmax(0, 1fr); }
  .ctp-stats-sec { margin-top: -64px; }
  .ctp-stats { grid-template-columns: minmax(0, 1fr); }
  .ctp-stat__n { font-size: 46px; }
  .ctp-sec { padding-top: 72px; }
  .ctp-call__panel { padding: 22px 12px 8px; border-radius: 24px; }
  .ctp-call__head { grid-template-columns: minmax(0, 1fr); padding: 0 8px; }
  .ctp-call__cal iframe { height: 900px; }
}

/* ---- responsive rhythm pass (tablets ~88px between sections, compact stat cards on phones) ---- */
@media (min-width: 761px) and (max-width: 1024px) { .ctp-sec, .ctp-cta { padding-top: 88px; } }
@media (max-width: 760px) {
  .ctp-stats { gap: 10px; }
  .ctp-stat { padding: 18px 20px 20px; border-radius: 20px; }
  .ctp-stat__n { margin-top: 12px; font-size: 40px; }
  .ctp-stat__l { margin-top: 6px; font-size: 14px; }
  .ctp-stat .ctp-bar, .ctp-stat .ctp-segs { margin-top: 14px; }
}
/* tablets: the first 'built around' card spans, the other two sit side by side */
@media (min-width: 761px) and (max-width: 1100px) { .ctp-cover__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ctp-cover__grid > :first-child { grid-column: 1 / -1; } }

/* ---- desktop/tablet pass: below ~1180px Calendly stacks its intro above the calendar, so the
   embed needs more height or the calendar and time zone are cut off ---- */
@media (max-width: 1180px) { .ctp-call__cal iframe { height: 1080px; } }

/* ---- desktop/tablet pass: small laptops (961-1100px) keep the two-column hero instead of stacking it ---- */
@media (min-width: 961px) and (max-width: 1100px) { .ctp-hero__grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 36px; align-items: start; } }

/* contact: the brand-logo rotator from the home page, as social proof between the hero and the call
   booking; one section gap on each side */
main > .logos.ctp-logos { padding: 100px 0 0; }
main > .logos.ctp-logos + .ctp-sec { padding-top: 100px; }
@media (max-width: 1100px) { main > .logos.ctp-logos { padding-top: 88px; } main > .logos.ctp-logos + .ctp-sec { padding-top: 88px; } }
@media (max-width: 760px) { main > .logos.ctp-logos { padding-top: 72px; } main > .logos.ctp-logos + .ctp-sec { padding-top: 72px; } }

.ctp-fail { margin: 14px 0 0; padding: 12px 16px; border-radius: 14px; background: #fdecea; color: #8e1f17; font-size: 14.5px; line-height: 1.5; outline: 0; }
.ctp-fail[hidden] { display: none; }
.ctp-fail a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.ctp-send:disabled { opacity: 0.6; cursor: wait; }
