/* Opstart homepage styles. Loaded after site.css. */

:root {
  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='1.2 1.2 21.6 20.6'%3E%3Cpath d='M12 1.6l3.2 6.6 7.2 1-5.2 5.1 1.2 7.2L12 18.1l-6.4 3.4 1.2-7.2L1.6 9.2l7.2-1z'/%3E%3C/svg%3E");
}

/* ---------- Sections and rows ---------- */
.section { position: relative; padding: 50px 0 4%; background: #fff; }
.section--rule { border-bottom: 1px solid var(--rule); }
.section--navy { padding: 80px 0; background: var(--navy); }
.row { position: relative; width: 80%; max-width: 1080px; margin: 0 auto; padding: 0 0 2%; container-type: inline-size; }
.row--wide { width: 100%; max-width: 1200px; }
.cols { display: flex; flex-wrap: wrap; align-items: flex-start; }
.gap { margin-bottom: 2.75cqw; }

.heading { max-width: 650px; margin-left: auto; margin-right: auto; font-size: 18px; color: var(--ink); }
.heading h1 { font-size: 38px; font-weight: 700; color: var(--ink); text-align: center; }
.heading p { text-align: center; }
.heading--light, .heading--light h1 { color: #fff; }

.btn { position: relative; display: inline-block; padding: .3em 1em; font-size: 20px; font-weight: 500; line-height: 1.7em; color: #fff; background: var(--orange); border: 2px solid var(--orange); border-radius: 88px; transition: all .3s ease; }
.btn::after { content: ""; position: absolute; top: 50%; width: 1em; height: 1em; margin: -.5em 0 0 -1em; background: currentColor; opacity: 0; -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat; transition: all .3s ease; }
.btn--pill { border-radius: 100px; }
.center { text-align: center; }

/* ---------- Hero ---------- */
.hero .row { max-width: 1200px; padding-left: 20px; padding-right: 20px; }
.hero__copy { width: 57.8%; margin-right: 5.5%; color: #fff; }
.hero__art { width: 36.7%; }
.hero__art img { display: block; width: 100%; margin-top: 50px; }
.pill { display: inline-block; padding: 10px 20px; color: #fff; font-weight: 700; background: var(--blue); border-radius: 50px; }
.pill--sm { display: inline; padding: 5px 15px; }
.hero h1 { font-size: 50px; font-weight: 700; line-height: 1.2em; color: #fff; }
.hero__packages { color: #fff; }
.hero__packages:hover { text-decoration: underline; }

.rating { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; font-weight: 400; line-height: normal; }
.rating img { display: block; flex: 0 0 46px; width: 46px; height: 46px; border-radius: 50%; box-shadow: 0 0 2px rgba(0, 0, 0, .12), 0 2px 4px rgba(0, 0, 0, .24); }
.rating__body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.rating__name { font-size: 18px; font-weight: 700; }
.rating__name a { color: #333; }
.rating__powered { font-weight: 600; color: #777; }
.g-b { color: #3c6df0; } .g-r { color: #d93025; } .g-y { color: #fb8e28; } .g-g { color: #188038; }
.stars { position: relative; display: inline-flex; align-items: center; gap: 4px; height: 20px; padding-right: 108px; font-size: 16px; font-weight: 800; color: #fb8e28; }
.stars:empty { gap: 0; }
.stars::after { content: ""; position: absolute; right: 0; top: 50%; width: 108px; height: 18px; transform: translateY(-50%); background: #fb8e28; -webkit-mask: var(--star) left center / 21.6px 18px repeat-x; mask: var(--star) left center / 21.6px 18px repeat-x; }

.hero__rating { max-width: 250px; margin: 40px auto 40px 0; padding: 15px 0 0 20px; background: #fff; border-top: 7px solid #4fcf6a; border-radius: 6px; overflow: hidden; }
.hero__rating .rating { margin: 4px; padding-bottom: 16px; }

.search { max-width: 650px; }
.search__outer { display: flex; align-items: center; padding: 4px 4px 4px 12px; background: #fff; border-radius: 40px; box-shadow: 0 4px 14px rgba(0, 0, 0, .12); }
.search__box { display: flex; flex: 1; align-items: center; min-width: 0; }
.search__icon { margin-right: 10px; font-size: 1.2rem; color: #6b7b8c; opacity: .8; }
.search input { flex: 1; min-width: 0; padding: 8px 4px; font-size: 1rem; color: #1a2b3c; background: transparent; border: 0; outline: 0; }
.search input::placeholder { font-size: 18px; font-weight: 500; color: var(--ink); opacity: 1; }
.search button { margin-left: 10px; padding: 10px 22px; font-size: 1.1em; font-weight: 600; line-height: normal; color: #fff; background: #ff8a00; border: 0; border-radius: 40px; outline: 0; cursor: pointer; transition: background .15s ease, transform .15s ease; }
.search button:hover { background: #ff9b22; transform: translateY(-2px); }

/* ---------- Reviews ---------- */
.reviews { padding: 0; }
.reviews .row { padding: 26px 0; }
.reviews__grid { display: flex; align-items: center; }
.reviews__summary { flex: 0 0 25%; width: 25%; }
.reviews__summary .rating { margin: 4px; padding: 16px; }
.reviews__track { flex: 0 0 75%; width: 75%; display: flex; gap: 4px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; --per: 3; }
.reviews__track::-webkit-scrollbar { display: none; }
.review { flex: 0 0 calc((100% - (var(--per) - 1) * 4px) / var(--per)); min-width: 0; padding: 0 3px; scroll-snap-align: start; }
.review__card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-height: 230px; margin: 4px; padding: 16px; font-size: 16px; font-weight: 400; line-height: normal; background: #f4f4f4; overflow: hidden; }
.review__who { display: flex; align-items: center; gap: 12px; width: 100%; }
.review__who img { display: block; flex: 0 0 46px; width: 46px; height: 46px; border-radius: 50%; box-shadow: 0 0 2px rgba(0, 0, 0, .12), 0 2px 4px rgba(0, 0, 0, .24); }
.review__who a { overflow: hidden; font-weight: 700; color: #154fc1; white-space: nowrap; text-overflow: ellipsis; }
.review__text { width: 100%; height: 100px; overflow-y: auto; font-size: 15px; line-height: 24px; color: #222; white-space: pre-wrap; word-break: break-word; scrollbar-width: thin; }
.review__g { position: absolute; top: 10px; right: 10px; width: 16px; height: 16px; }

/* ---------- Trust ---------- */
.trust { background: #fbfbfc; }
.trust__copy { width: 57.8%; margin-right: 5.5%; font-size: 18px; line-height: 1.8em; color: var(--ink); }
.trust__copy h1 { padding-bottom: 30px; font-size: 38px; font-weight: 700; color: var(--ink); }
.trust__badges { width: 15.6%; }
.trust__badges--left { margin-right: 5.5%; text-align: right; }
.trust__badges img { display: inline-block; width: 150px; vertical-align: top; }
.trust__badges img + img { margin-top: 2.75cqw; }
.trust__badges--left img { margin-left: auto; }

/* ---------- Pricing ---------- */
.plans { width: 100%; padding: 0 25px 2%; }
.plan { width: 31.333%; margin: 25px 3% 0 0; padding: 0 5px; color: var(--ink); text-align: center; border: 1px solid var(--ink); border-radius: 8px; overflow: hidden; }
.plan:last-child { margin-right: 0; }
.plan--featured { margin-top: 0; color: #fff; background: var(--navy); border: 0; }
.plan__name { margin: 17px 0 15px; padding: 0; font-size: 36px; font-weight: 700; line-height: 50px; }
.plan__rule { width: 90%; height: 23px; margin: 0 auto 15px; border-top: 1px solid currentColor; }
.plan__price { margin: 37px 0; padding: 0; font-size: 72px; font-weight: 700; }
.plan__price span { font-size: 17px; }
.plan__text { margin-bottom: 40px; font-size: 20px; font-weight: 600; }
.plan__text p + p { font-size: 15px; }
.plan .btn { margin-bottom: 30px; }
.plans-note { margin-top: 18px; font-size: 18px; font-weight: 600; color: var(--ink); text-align: center; }

/* ---------- Steps ---------- */
.step { width: 20.875%; margin-right: 5.5%; font-size: 16px; text-align: center; }
.step:last-child { margin-right: 0; }
.step img { display: block; width: 60px; height: 60px; margin: 0 auto 15px; }
.step h4, .why__item h4 { font-size: 18px; font-weight: 700; }

/* ---------- Why choose us ---------- */
.why { padding-bottom: 4%; }
.why .row { padding-bottom: 0; }
.why__intro { width: 29.667%; margin-right: 5.5%; padding: 2.855cqw 0; }
.why__intro .pill-wrap { font-weight: 700; }
.why__intro h2 { margin-bottom: 20px; font-size: 28px; font-weight: 700; }
.why__intro .lead { margin-bottom: 20px; padding: 0; font-size: 16px; }
.why__intro .body { font-size: 16px; }
.why__grid { width: 64.833%; display: flex; flex-wrap: wrap; justify-content: space-between; padding: 2.75cqw 0; row-gap: 2.75cqw; }
.why__item { width: 45.758%; font-size: 16px; }
.why__item > * { max-width: 550px; }
.why__item img { display: block; width: auto; height: 75px; margin-bottom: 30px; }

/* ---------- FAQ ---------- */
.faq { max-width: 850px; margin: 0 auto 20px; padding: 20px; background: #fff; border: 1px solid #e0e6ef; border-radius: 8px; overflow: hidden; }
.faq summary { display: block; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq h5 { position: relative; padding: 0 50px 0 0; font-size: 16px; font-weight: 700; color: #344256; }
.faq h5::before { content: ""; position: absolute; right: -5px; top: 50%; width: 25px; height: 25px; margin-top: -12.5px; background: currentColor; -webkit-mask: var(--chevron) center / contain no-repeat; mask: var(--chevron) center / contain no-repeat; }
.faq.is-open h5::before { transform: rotate(180deg); }
.faq__body { padding-top: 20px; }
.faq__body ul { padding: 0 0 23px 1em; list-style: disc; line-height: 26px; }

/* ---------- Wide screens: fixed vertical rhythm, as on the live site ---------- */
@media (min-width: 1350px) {
  .section { padding-bottom: 54px; }
  .section--navy { padding-bottom: 80px; }
  .reviews { padding-bottom: 0; }
  .row, .plans { padding-bottom: 27px; }
  .why .row { padding-bottom: 0; }
  .reviews .row { padding-bottom: 26px; }
}
@media (min-width: 981px) {
  .btn:hover { padding: .3em 2em .3em .7em; }
  .btn:hover::after { margin-left: .3em; opacity: 1; }
}

/* Review columns follow the width of the reviews block, like the plugin does */
@container (max-width: 1099px) {
  .reviews__summary { flex-basis: 33.333%; width: 33.333%; }
  .reviews__track { flex-basis: 66.667%; width: 66.667%; --per: 2; }
}
@container (max-width: 749px) {
  .reviews__summary, .reviews__track { flex-basis: 50%; width: 50%; }
  .reviews__track { --per: 1; }
}
@container (max-width: 509px) {
  .reviews__grid { flex-wrap: wrap; }
  .reviews__summary, .reviews__track { flex-basis: 100%; width: 100%; }
}

/* ---------- Tablet and below ---------- */
@media (max-width: 980px) {
  .section { padding: 50px 0; }
  .section--navy { padding: 80px 0; }
  .reviews { padding: 0; }
  .row, .plans { padding-bottom: 30px; }
  .why .row { padding-bottom: 0; }
  .reviews .row { padding-bottom: 26px; }
  .gap { margin-bottom: 30px; }

  .hero__copy { width: 100%; margin: 0 0 30px; }
  .hero__art { display: none; }
  .hero .cols { padding-bottom: 1px; }

  .trust__copy { width: 100%; margin: 0 0 30px; }
  .trust__badges { width: 47.25%; }
  .trust__badges img { display: block; }
  .trust__badges img + img { margin-top: 30px; }

  .plans { max-width: 385px; }
  .plan { width: 100%; margin-right: 0; margin-bottom: 30px; }
  .plan:last-child { margin-bottom: 0; }
  .plan__name, .plan__rule { margin-bottom: 30px; }

  .step { width: 47.25%; margin: 0 5.5% 30px 0; }
  .step:nth-child(2n) { margin-right: 0; }
  .step:nth-last-child(-n+2) { margin-bottom: 0; }

  .why__intro { width: 100%; margin: 0 0 30px; padding: 0; }
  .why__grid { width: 100%; padding: 30px 0; row-gap: 30px; }
  .why__item { width: 100%; }

}

@media (max-width: 767px) {
  .hero h1 { font-size: 40px; }
  .hero__badge { text-align: center; }
  .plans-note { font-size: 15px; }
  .trust__badges img { margin-left: auto; margin-right: auto; }
}

@media (max-width: 730px) {
  .search__outer { display: block; padding: 0; background: none; border-radius: 0; box-shadow: none; }
  .search__box { padding: 4px 4px 4px 12px; background: #fff; border-radius: 40px; box-shadow: 0 4px 14px rgba(0, 0, 0, .12); }
  .search button { display: block; width: 100%; margin: 8px 0 0; }
}

@media (max-width: 479px) {
  .step { width: 100%; margin: 0 0 30px; }
  .step:nth-last-child(-n+2) { margin-bottom: 30px; }
  .step:last-child { margin-bottom: 0; }
  .trust .cols { flex-direction: column; }
  .trust__badges { display: flex; flex-wrap: wrap; justify-content: center; width: 100%; margin: 0 0 30px; }
  .trust__badges--right { margin-bottom: 0; }
  .trust__badges img { width: 40%; margin: 0 5%; }
  .trust__badges img + img { margin-top: 0; }
}
