/* Shop add-on for the Mobirise site: pricing cards, cart drawer, banners.
   Also holds small layout overrides that Mobirise's own CSS cannot express. */

/* ---------- Top of page: intro + video fit in the first screen ---------- */
.cid-vywhxxkB9a.header4,
.header4.mbr-fullscreen { min-height: 0 !important; }
.cid-vywhxxkB9a.header4 { display: block; padding-top: 6.25rem; padding-bottom: 1.75rem; }
.cid-vywhxxkB9a .mbr-section-title { font-size: clamp(1.7rem, 3.2vw, 2.6rem); margin-bottom: 1rem !important; }
.cid-vywhxxkB9a .mbr-figure video {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000;
  /* never taller than what is left of the first screen, but keep the 16:9 shape */
  max-width: calc((100vh - 9.5rem) * 16 / 9); margin: 0 auto;
}
@media (max-width: 767px) {
  .cid-vywhxxkB9a.header4 { padding-top: 5.25rem; padding-bottom: 1rem; }
  .cid-vywhxxkB9a .mbr-text { font-size: 1rem; margin-bottom: .75rem !important; }
  .cid-vywhxxkB9a .mbr-section-btn { margin-bottom: .75rem !important; padding-left: 1.25rem; }
  .cid-vywhxxkB9a .mbr-section-btn .btn { margin: 0 .5rem .5rem 0; padding: .6rem 1rem; }
  .cid-vywhxxkB9a .mbr-figure { margin-top: .5rem; }
  .cid-vywhxxkB9a .mbr-figure video { max-width: 100%; }
}

/* ---------- Features: close up the gaps between the three blocks ---------- */
.cid-vywIz9jDYw .row.mb-5, .cid-vywIWVWGIt .row.mb-5 { display: none; }   /* empty title rows */
.cid-vywGqVipfo .row.mb-5 { margin-bottom: 1.5rem !important; }
.cid-vywGqVipfo .item, .cid-vywIz9jDYw .item, .cid-vywIWVWGIt .item { margin-bottom: 1.5rem !important; }
.cid-vywIWVWGIt { padding-bottom: 1.5rem; }

/* ---------- Pricing cards ---------- */
#shop-plans { padding-top: 1.75rem; row-gap: 1.75rem; }
#shop-plans .plan { position: relative; height: 100%; display: flex; flex-direction: column; border-radius: 6px;
                    border: 2px solid transparent; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
#shop-plans .plan.featured { border-color: #4479d9; box-shadow: 0 6px 22px rgba(68,121,217,.25); }
#shop-plans .plan-body { margin-top: auto; }
#shop-plans .price-term { min-height: 1.5rem; color: #6b7280; }
.shop-badge { font-family: "Jost", "Segoe UI", Arial, sans-serif; position: absolute; top: -15px; left: 50%; transform: translateX(-50%); white-space: nowrap;
              background: #4479d9; color: #fff; font-weight: 600; font-size: .85rem; letter-spacing: .02em;
              padding: .2rem 1rem; border-radius: 1rem; box-shadow: 0 2px 4px rgba(0,0,0,.2); }
.shop-badge.value { background: #2f855a; }
#shop-plans .btn { min-width: 9rem; }
#shop-plans .price { font-size: clamp(2.1rem, 3.1vw, 3rem); line-height: 1.1; white-space: nowrap; word-break: normal; }
#shop-plans .plan-title { font-size: 1.5rem; }

/* ---------- Cart button in the menu ---------- */
.navbar-buttons .btn[data-shop-cart] { position: relative; cursor: pointer; }
.shop-count { position: absolute; top: -8px; right: -8px; min-width: 20px; height: 20px; padding: 0 5px;
              border-radius: 10px; background: #d9534f; color: #fff; font-size: 12px; line-height: 20px; text-align: center; }

/* ---------- Cart drawer ---------- */
.shop-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 2000; }
.shop-cart { position: fixed; top: 0; right: 0; height: 100%; width: min(430px, 100%); background: #fff; color: #232323;
             z-index: 2001; padding: 20px 18px; overflow: auto; transform: translateX(100%); transition: transform .2s;
             box-shadow: -4px 0 20px rgba(0,0,0,.25); font-family: "Jost", "Segoe UI", Arial, sans-serif; font-size: 1.05rem; line-height: 1.4; }
.shop-cart.open { transform: none; }
.shop-cart * { box-sizing: border-box; }
.shop-cart-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.shop-cart-head h2 { margin: 0; font-size: 1.6rem; }
.shop-link { background: none; border: 0; color: #4479d9; cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }
.shop-muted { color: #6b7280; }
.shop-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid #e5e7eb; align-items: center; }
.shop-row .name { font-weight: 600; }
.shop-row .line { font-weight: 600; text-align: right; }
.shop-qty { display: flex; align-items: center; gap: 8px; }
.shop-qty button { width: 30px; height: 30px; border-radius: 6px; border: 1px solid #cbd5e1; background: #fff; cursor: pointer; font-size: 18px; line-height: 1; }
.shop-total { display: flex; justify-content: space-between; font-size: 1.35rem; margin: 16px 0 10px; }
.shop-field label { display: block; font-weight: 600; margin: 8px 0 4px; }
.shop-field input { width: 100%; padding: 9px 11px; border: 1px solid #cbd5e1; border-radius: 6px; font: inherit; }
.shop-actions .btn { display: block; width: 100%; margin: 10px 0 0; text-align: center; cursor: pointer; }
.shop-actions .btn.alt { background: #fff !important; color: #4479d9 !important; border: 2px solid #4479d9 !important; }
.shop-fine { font-size: .85rem; color: #6b7280; margin: 12px 0 0; }
.shop-actions[hidden], .shop-cart [hidden] { display: none !important; }

/* ---------- Thank-you / cancelled banner ---------- */
.shop-banner { position: fixed; top: 5.75rem; left: 50%; transform: translateX(-50%); z-index: 1900; width: min(680px, calc(100% - 24px));
               background: #ecfdf5; border: 1px solid #34d399; color: #064e3b; padding: 14px 44px 14px 16px; border-radius: 8px;
               box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.shop-banner.warn { background: #fffbeb; border-color: #f59e0b; color: #78350f; }
.shop-banner button { position: absolute; top: 6px; right: 10px; background: none; border: 0; font-size: 22px; cursor: pointer; color: inherit; }

/* ---------- Free tool popup ---------- */
#free-tool-form .form-content { row-gap: .25rem; }
.ft-form .input-group-btn { text-align: center; margin-top: .5rem; }
#free-tool-form .input-group-btn .btn { min-width: 9rem; }
.ft-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ft-msg, .ft-fine { font-family: "Jost", "Segoe UI", Arial, sans-serif; }
.ft-msg { margin: 1rem 0 0; padding: .75rem 1rem; border-radius: 6px; text-align: center; font-size: 1rem; line-height: 1.4; }
.ft-msg.ok  { background: #ecfdf5; border: 1px solid #34d399; color: #065f46; }
.ft-msg.err { background: #fef2f2; border: 1px solid #f87171; color: #991b1b; }
.ft-msg[hidden] { display: none !important; }
.ft-fine { margin: 1rem 0 0; font-size: .85rem; color: #6b7280; text-align: center; }

/* Free Tool popup: center the submit button */
.ft-form .input-group-btn { text-align: center; display: flex; justify-content: center; }

/* Cart: customer details */
.shop-need { margin: 8px 0 0; font-size: .9rem; }
.shop-err { margin: 10px 0 0; padding: 8px 10px; border-radius: 6px; background: #fef2f2; border: 1px solid #f87171; color: #991b1b; font-size: .95rem; }
.shop-cart .ft-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.shop-actions .btn[disabled] { opacity: .6; cursor: wait; }

/* Hero: two buttons side by side; Benefits trial link */
.cid-vywhxxkB9a .mbr-section-btn .btn { margin: 0 .75rem .5rem 0; }
.trial-cta .trial-link { font-weight: 700; text-decoration: underline; cursor: pointer; }

/* Intro video: real play button over the poster and an always-visible control strip */
.vc-wrap { width: 100%; max-width: calc((100vh - 9.5rem) * 16 / 9); margin: 0 auto; }
.vc-wrap video { display: block; width: 100%; max-width: 100%; }
@media (max-width: 767px) { .vc-wrap { max-width: 100%; } }
.vc-stage { position: relative; }
.vc-cover { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; }
.vc-cover:focus-visible { outline: 3px solid #4479d9; outline-offset: -3px; }
.vc-bar { display: flex; align-items: center; gap: .5rem; padding: .5rem .25rem 0; font-family: "Jost", "Segoe UI", Arial, sans-serif; }
.vc-btn { min-width: 44px; height: 40px; padding: 0 .6rem; border-radius: 6px; border: 1px solid rgba(127,127,127,.55); background: rgba(127,127,127,.15);
  color: inherit; font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; white-space: nowrap; }
.vc-btn:hover { background: rgba(127,127,127,.3); }
.vc-seek { flex: 1 1 auto; min-width: 0; height: 40px; margin: 0; cursor: pointer; accent-color: #4479d9; }
.vc-time { font-size: .9rem; white-space: nowrap; font-variant-numeric: tabular-nums; opacity: .85; }
@media (max-width: 480px) { .vc-bar { flex-wrap: wrap; } .vc-seek { order: 5; flex: 1 0 100%; } .vc-time { margin-left: auto; } }

/* Play symbol drawn by the page (so the poster image never needs a triangle) */
.vc-play { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%;
  background: rgba(0,0,0,.6); border: 3px solid rgba(255,255,255,.95); box-shadow: 0 2px 14px rgba(0,0,0,.45); transition: transform .15s ease, background .15s ease; }
.vc-play::after { content: ""; position: absolute; left: 50%; top: 50%; margin: -17px 0 0 -11px; border-style: solid; border-width: 17px 0 17px 30px;
  border-color: transparent transparent transparent #fff; }
.vc-cover:hover .vc-play, .vc-cover:focus-visible .vc-play { transform: scale(1.08); background: rgba(68,121,217,.9); }
@media (max-width: 767px) { .vc-play { width: 68px; height: 68px; margin: -34px 0 0 -34px; } .vc-play::after { margin: -14px 0 0 -9px; border-width: 14px 0 14px 24px; } }

/* Hero buttons stay side by side on desktop */
@media (min-width: 992px) {
  .cid-vywhxxkB9a .mbr-section-btn { display: flex; flex-wrap: nowrap; gap: .5rem; }
  .cid-vywhxxkB9a .mbr-section-btn .btn { margin: 0; padding: .7rem .9rem; font-size: .95rem; white-space: nowrap; }
}

/* Larger hero buttons on wide desktop windows only (phones and smaller windows are unchanged) */
@media (min-width: 1280px) {
  .cid-vywhxxkB9a .mbr-section-btn .btn { padding: .8rem 1.15rem; font-size: 1.05rem; }
}
@media (min-width: 1600px) {
  .cid-vywhxxkB9a .mbr-section-btn .btn { padding: .9rem 1.4rem; font-size: 1.15rem; }
}
