/* v5 page components: the pieces of the demo page (/demo/), the pricing page (/pricing/) and its thank-you page (/pricing/thankyou.php): the hero's card with its ticks,
   buttons, section headings, booking (Calendly), how it works, FAQ and the closing call to action. Everything is scoped under .v5d (the prefix comes from the demo page,
   where they began) so it can't touch other pages. Colours, type and spacing follow the v5 design mockup and the feature block (v5featureblock.css), so the two read as
   one family. The price calculator's own additions are in v5pricecalc.css. */

.v5d {
    --v5d-font: 'Inter', system-ui, sans-serif;
    --v5d-ink: #232122;
    --v5d-gray: #575556;
    --v5d-blue: #2491eb;
    --v5d-orange: var(--orange-cta, #fbb03b);
    --v5d-tint: #f5f9fd;
    /* Height of the fixed header (v5header.php): the page sets $overlayHeader,
       so there's no spacer and the hero pads itself down by this much. It
       changes at the same 991px breakpoint the header does. */
    --v5d-header-h: 84px;
    font-family: var(--v5d-font);
    color: var(--v5d-gray);
}

@media (max-width: 991px) {
    .v5d { --v5d-header-h: 68px; }
}

.v5d,
.v5d *,
.v5d *::before,
.v5d *::after {
    box-sizing: border-box;
}

/* Anchors (#book) must clear the fixed header pill. */
.v5d [id] {
    scroll-margin-top: 110px;
}

.v5d-section {
    width: 100%;
}

.v5d-section--tint  { background: var(--v5d-tint); }
.v5d-section--white { background: #ffffff; }

/* 1264 = 1200px of content + 32px side padding, matching the feature block. */
.v5d-inner {
    max-width: 1264px;
    margin: 0 auto;
    padding: 96px 32px;
}

/* --- Shared text pieces (same scale as .v5-fb-head) ----------------------- */

.v5d .v5d-eyebrow {
    margin: 0 0 14px;
    font-family: var(--v5d-font);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--v5d-blue);
}

.v5d .v5d-h2 {
    margin: 0 0 16px;
    font-family: var(--v5d-font);
    font-size: 42px;
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
    text-transform: none;
    color: var(--v5d-ink);
}

.v5d .v5d-lede {
    margin: 0;
    font-family: var(--v5d-font);
    font-size: 18px;
    line-height: 1.6;
    color: var(--v5d-gray);
}

.v5d-head {
    max-width: 680px;
    margin: 0 auto 56px;
    text-align: center;
}

/* --- Buttons --------------------------------------------------------------- */

.v5d .v5d-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 999px;
    font-family: var(--v5d-font);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.v5d .v5d-btn--primary,
.v5d .v5d-btn--primary:visited {
    background: var(--v5d-orange);
    color: #ffffff !important;
}

.v5d .v5d-btn--primary:hover,
.v5d .v5d-btn--primary:focus {
    background: var(--orange-hover, #ffc15e);
}

.v5d .v5d-btn--secondary,
.v5d .v5d-btn--secondary:visited {
    background: transparent;
    color: var(--v5d-blue) !important;
    border: 2px solid var(--v5d-blue);
}

.v5d .v5d-btn--secondary:hover,
.v5d .v5d-btn--secondary:focus {
    background: #f3f8fe;
}

.v5d .v5d-btn:focus-visible,
.v5d-faq summary:focus-visible {
    outline: 3px solid rgba(36, 145, 235, 0.45);
    outline-offset: 3px;
}

/* --- Hero ------------------------------------------------------------------ */

.v5d-hero {
    position: relative;
    overflow-x: clip;
}

.v5d-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 0%, rgba(36, 145, 235, 0.10), transparent 50%),
        radial-gradient(circle at 92% 80%, rgba(251, 176, 54, 0.12), transparent 50%);
    pointer-events: none;
}

.v5d-hero .v5d-inner {
    position: relative;
    padding-top: calc(var(--v5d-header-h) + 80px);
    padding-bottom: 56px;
}

.v5d-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 64px;
    align-items: center;
}

.v5d .v5d-h1 {
    margin: 0 0 22px;
    font-family: var(--v5d-font);
    font-size: 56px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    text-transform: none;
    color: var(--v5d-ink);
}

.v5d-hero .v5d-lede {
    max-width: 560px;
    font-size: 19px;
}

.v5d-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 32px 0 20px;
}

.v5d .v5d-note {
    margin: 0;
    font-family: var(--v5d-font);
    font-size: 15px;
    line-height: 1.5;
    color: var(--v5d-gray);
}

/* "What you get" card */
.v5d-get {
    background: #ffffff;
    border: 1px solid #eef0f3;
    border-radius: 28px;
    padding: 36px;
    box-shadow: 0 30px 70px rgba(35, 32, 31, 0.08);
}

.v5d .v5d-get-title {
    margin: 0 0 24px;
    font-family: var(--v5d-font);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #6b7280;
}

.v5d-get-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.v5d-get-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.v5d-tick {
    flex: 0 0 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #e9f4fd;
    color: var(--v5d-blue);
}

.v5d-tick svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.v5d .v5d-get-item strong {
    display: block;
    margin: 0 0 3px;
    font-family: var(--v5d-font);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--v5d-ink);
}

/* Its own class - a bare "span" selector here also matched the tick circle
   (.v5d-tick is a span) and broke its centring. */
.v5d .v5d-get-desc {
    display: block;
    font-family: var(--v5d-font);
    font-size: 15.5px;
    line-height: 1.55;
    color: var(--v5d-gray);
}

/* Promotion highlight inside the "What you get" card (?promo=merch / ?promo=hoodie) */
.v5d-promo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    margin: 0 0 26px;
    padding: 16px 18px;
    border-radius: 20px;
    background: #fff6e8;
    border: 1px solid #fbd9a0;
}

.v5d-promo-img {
    flex: 0 0 auto;
    width: 132px;
    height: 132px;
    margin: -18px -18px -18px -16px;   /* bigger than its space, so it fills the card's padding and the card keeps its height */
    object-fit: contain;
}

.v5d .v5d-promo strong {
    display: block;
    margin: 2px 0 3px;
    font-family: var(--v5d-font);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--v5d-ink);
}

.v5d-promo-tag {
    display: inline-block;
    font-family: var(--v5d-font);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #b4690e;
}

/* terms and opt-out: small and quiet, along the bottom of the Demo offer box */
.v5d .v5d-promo .v5d-promo-fine {
    flex: 0 0 100%;
    margin: 0;
    text-align: right;
    font-family: var(--v5d-font);
    font-size: 12.5px;
    color: #9aa1ab;
}

.v5d .v5d-promo-fine a,
.v5d .v5d-promo-fine a:visited {
    color: #9aa1ab !important;
    text-decoration: underline !important;
    text-underline-offset: 2px;
}

.v5d .v5d-promo-fine a:hover {
    color: #6b7280 !important;
}

/* --- Booking (Calendly) ---------------------------------------------------- */

.v5d-book .v5d-inner {
    padding-top: 40px;
    padding-bottom: 72px;
}

/* Deliberately no card of its own: the Calendly widget already draws its own
   white panel, so it sits straight on the section colour instead of a white
   box inside a white box. */
.v5d-book-card {
    background: transparent;
}

/* Carried over unchanged from the original demo-request.php: the widget
   needs a fixed height, and on phones a much taller one. */
.calendly-inline-widget { height: 730px; }

@media only screen and (max-width: 600px) {
    .calendly-inline-widget { height: 1530px !important; padding-left: 20px; padding-right: 20px; }
    .calendly-inline-widget, .simplebar-content-wrapper { overflow: hidden !important; }
}

/* Review badges (includes/v3minibages.php) - existing markup, just given room.
   The include hides its row below 992px, so the spacing lives on the row itself:
   on smaller screens the row and its gap disappear together. */
.v5d-badges .row {
    margin: 40px 0 0;
    padding-bottom: 0 !important;
}

/* --- How it works ---------------------------------------------------------- */

.v5d-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.v5d-step {
    background: #ffffff;
    border: 1px solid #ececec;
    border-radius: 18px;
    padding: 34px 28px;
}

.v5d-step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 20px;
    border-radius: 50%;
    background: #e9f4fd;
    font-family: var(--v5d-font);
    font-size: 19px;
    font-weight: 700;
    color: var(--v5d-blue);
}

.v5d .v5d-step h3 {
    margin: 0 0 10px;
    font-family: var(--v5d-font);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    text-transform: none;
    color: var(--v5d-ink);
}

.v5d .v5d-step p {
    margin: 0;
    font-family: var(--v5d-font);
    font-size: 16.5px;
    line-height: 1.65;
    color: var(--v5d-gray);
}

/* --- FAQ ------------------------------------------------------------------- */

.v5d-faq-wrap {
    max-width: 820px;
    margin: 0 auto;
}

.v5d-faq {
    margin: 0 0 14px;
    background: #ffffff;
    border: 1px solid #ececec;
    border-radius: 16px;
    transition: border-color 0.15s ease;
}

.v5d-faq[open] {
    border-color: #b9dcf9;
}

.v5d-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 26px;
    font-family: var(--v5d-font);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--v5d-ink);
    cursor: pointer;
    list-style: none;
}

.v5d-faq summary::-webkit-details-marker {
    display: none;
}

.v5d-faq summary::after {
    content: '+';
    flex: 0 0 auto;
    font-size: 26px;
    font-weight: 400;
    line-height: 1;
    color: var(--v5d-blue);
}

.v5d-faq[open] summary::after {
    content: '\2212';
}

.v5d-faq-a {
    padding: 0 26px 24px;
}

.v5d .v5d-faq-a p {
    margin: 0;
    font-family: var(--v5d-font);
    font-size: 17px;
    line-height: 1.65;
    color: var(--v5d-gray);
}

.v5d .v5d-faq-a a {
    color: var(--v5d-blue);
    font-weight: 700;
}

/* --- Closing call to action ------------------------------------------------ */

.v5d-cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 64px;
    border-radius: 32px;
    background: var(--v5d-ink);
}

.v5d-cta-card .v5d-h2 {
    max-width: 520px;
    margin-bottom: 12px;
    color: #ffffff;
}

.v5d-cta-card .v5d-lede {
    max-width: 520px;
    color: rgba(255, 255, 255, 0.72);
}

.v5d-cta-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    flex: 0 0 auto;
}

.v5d .v5d-cta-link,
.v5d .v5d-cta-link:visited {
    font-family: var(--v5d-font);
    font-size: 16px;
    font-weight: 700;
    color: #ffffff !important;
    text-decoration: underline !important;
    text-underline-offset: 4px;
}

/* --- Responsive ------------------------------------------------------------ */

@media (max-width: 991px) {
    .v5d-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .v5d .v5d-h1 { font-size: 46px; }
}

@media (max-width: 900px) {
    .v5d-inner { padding-top: 72px; padding-bottom: 72px; }
    .v5d-hero .v5d-inner { padding-top: calc(var(--v5d-header-h) + 48px); padding-bottom: 40px; }
    .v5d .v5d-h2 { font-size: 34px; }
    .v5d-head { margin-bottom: 44px; }
    .v5d-steps { grid-template-columns: minmax(0, 1fr); }
    .v5d-cta-card { flex-direction: column; align-items: flex-start; padding: 44px 32px; }
    .v5d-cta-actions { align-items: flex-start; }
}

@media (max-width: 600px) {
    .v5d-inner { padding-left: 16px; padding-right: 16px; }
    .v5d .v5d-h1 { font-size: 38px; }
    .v5d .v5d-h2 { font-size: 30px; }
    .v5d-get { padding: 26px 22px; border-radius: 22px; }
    .v5d-cta-card { padding: 36px 24px; border-radius: 24px; }
    .v5d-faq summary { padding: 18px 20px; font-size: 17px; }
    .v5d-faq-a { padding: 0 20px 20px; }
    .v5d-hero-actions .v5d-btn { width: 100%; }
}

/* the text sits beside the image (it shrinks rather than wrapping under it); the terms line takes the row below */
.v5d-promo > div {
    flex: 1 1 0;
    min-width: 0;
}


/* --- Thank-you page after the price calculator (pricing/thankyou.php) ------------- */
/* what the shared pieces above lack: the big price in the hero's card, the demo block under it, and the merch offer as one link */

.v5d .v5t-price {
    margin: 0;
    font-family: var(--v5d-font);
    font-size: 64px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--v5d-ink);
}

.v5d .v5t-per {
    margin: 8px 0 24px;
    font-family: var(--v5d-font);
    font-size: 15.5px;
    line-height: 1.5;
    color: var(--v5d-gray);
}

/* the demo invitation in the hero's copy column: its text is the hero's own sub line */
.v5-sh p.v5-sh-sub.v5t-demo-text { margin-top: 0; }

/* "see VIZOR in action" and its button, at the bottom of the card */
.v5d .v5t-cta { margin-top: 24px; padding-top: 22px; border-top: 1px solid #eef0f3; }
.v5d .v5t-cta-text { margin: 0 0 16px; font-family: var(--v5d-font); font-size: 18px; font-weight: 700; line-height: 1.35; color: var(--v5d-ink); }
.v5d .v5t-cta .v5d-btn { width: 100%; }

/* the demo offer under the price card: a card of its own and one link as a whole, a gap below the card above */
.v5d a.v5t-promo, .v5d a.v5t-promo:visited { display: block; margin: 20px 0 0; padding: 14px; box-shadow: 0 18px 44px rgba(0, 25, 70, 0.28); color: inherit; text-decoration: none !important; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.v5d a.v5t-promo:hover, .v5d a.v5t-promo:focus-visible { transform: translateY(-3px); box-shadow: 0 24px 54px rgba(0, 25, 70, 0.36); }
.v5d a.v5t-promo:focus-visible { outline: 3px solid rgba(255, 255, 255, 0.85); outline-offset: 3px; }
.v5d .v5t-promo .v5d-promo { margin: 0; }
.v5d .v5t-promo-body { display: block; flex: 1 1 0; min-width: 0; }
.v5d .v5t-terms { margin: 10px 4px 0; text-align: right; font-family: var(--v5d-font); font-size: 12.5px; }
.v5d .v5t-terms a, .v5d .v5t-terms a:visited { color: rgba(255, 255, 255, 0.78) !important; text-decoration: underline !important; text-underline-offset: 2px; }
.v5d .v5t-terms a:hover { color: #ffffff !important; }

@media (max-width: 600px) {
    .v5d .v5t-price { font-size: 52px; }
}

@media (prefers-reduced-motion: reduce) {
    .v5d a.v5t-promo { transition: none; }
    .v5d a.v5t-promo:hover, .v5d a.v5t-promo:focus-visible { transform: none; }
}
