/* The site renders light-only; keeps webview dark modes off form controls */
:root { color-scheme: light; }

html { scroll-behavior: smooth; }
/* Anchor targets clear the sticky header on jump */
#top, #services, #leadership, #process, #work, #plans, #about, #contact, #modes, #retainers, #pool, #proof, #faq { scroll-margin-top: 84px; }

/* TB header stacks above page content so the open mobile menu paints over
   the hero. Without this, the header only gains a z-index once Divi's
   sticky engages on scroll — at the top of the page the menu lost. */
.et-l--header { position: relative; z-index: 900; }

/* Theme Builder header — slim bar, muted links, 28px gap. */
.et-l--header .et_pb_menu__menu > nav > ul > li:not(.menu-cta) > a,
.et-l--header .et_pb_menu__menu > nav > ul > li.current-menu-item:not(.menu-cta) > a { padding-top: 15px !important; padding-bottom: 15px !important; color: #5A5F6A !important; }
.et-l--header .et_pb_menu__menu > nav > ul > li:not(.menu-cta):hover > a { color: #16181D !important; }
.et-l--header .et_pb_menu__menu > nav > ul > li { margin-left: 28px; }
.et-l--header .et_pb_menu__menu > nav > ul > li:first-child { margin-left: 0; }

/* Menu CTA pill */
.et-l--header .et_pb_menu__menu > nav > ul > li.menu-cta > a,
.et-l--header .et_pb_menu__menu > nav > ul > li.menu-cta.current-menu-item > a { background: #5B5BD6 !important; color: #ffffff !important; padding: 10px 18px !important; border-radius: 8px; font-weight: 600; align-self: center; }
.et-l--header .et_pb_menu__menu > nav > ul > li.menu-cta > a:hover { background: #4F4FC2 !important; opacity: 1; }

/* Hero portrait — 4:5 crop with rounded border */
.ms-hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; border: 1px solid #E6E8ED; display: block; }
.ms-hero-photo { max-width: 440px; }

/* About portrait — fixed crop with rounded border */
.ms-about-img img { width: 320px; height: 380px; object-fit: cover; border-radius: 14px; border: 1px solid #E6E8ED; display: block; }

/* Case-study grid (Pixel Filterable Grid) — brand chips + card chrome */
.ms-cs-grid .dipi-filter-bar { margin-bottom: 26px; }
.ms-cs-grid .dipi-filter-bar-item { font-size: 11.5px; letter-spacing: 0.08em; font-weight: 600; text-transform: uppercase; color: #5A5F6A; background: #fff; border: 1px solid #DDE0E6; border-radius: 8px; padding: 9px 14px; margin: 0 10px 10px 0; cursor: pointer; transition: all .15s; }
.ms-cs-grid .dipi-filter-bar-item.active, .ms-cs-grid .dipi-filter-bar-item:hover { background: #5B5BD6 !important; border-color: #5B5BD6 !important; color: #fff !important; }
.ms-cs-grid .dipi-filter-bar-item.active .dipi-filter-bar-item-title, .ms-cs-grid .dipi-filter-bar-item:hover .dipi-filter-bar-item-title { color: #fff !important; }
.ms-cs-grid .dipi-filter-bar-item .dipi-filter-bar-item-title { font-size: inherit; font-family: inherit; color: inherit; }
.ms-cs-grid .dipi-filtered-posts-item { background: transparent; border: none; padding: 0; }
.ms-cs-grid .grid-item { background: #fff; border: 1px solid #E6E8ED; border-radius: 14px; padding: 30px !important; box-shadow: 0 1px 2px rgba(16,17,20,0.03); margin-bottom: 18px; box-sizing: border-box; }
.ms-cs-grid .dipi-grid-item-content h1, .ms-cs-grid .dipi-grid-item-content h2, .ms-cs-grid .dipi-grid-item-content h3, .ms-cs-grid .dipi-grid-item-content h4 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; color: #16181D; line-height: 1.3; padding-bottom: 0; margin: 0; }
.ms-cs-grid .dipi-grid-item-content h4 a { color: #16181D; }
.ms-cs-grid .dipi-grid-item-content p { font-size: 14px; line-height: 1.65; color: #5A5F6A; }
.ms-cs-grid .dipi-fg-readmore-button-wrapper { margin-top: 16px; }
.ms-cs-grid .dipi-fg-readmore-button-wrapper a { font-size: 13.5px; font-weight: 600; color: #5B5BD6; background: transparent; border: none; padding: 0; }
.ms-cs-grid .dipi-grid-item-content .dipi-grid-item-title { margin: 0 !important; padding: 0 !important; }

/* Case-study grids: CSS grid instead of Masonry positioning (matches the
   design's equal-height rows and is immune to font-load reflow overlaps). */
.ms-cs-grid .dipi-filtered-posts-item .grid { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 18px; height: auto !important; }
.ms-cs-grid .dipi-filtered-posts-item .grid-item { position: static !important; transform: none !important; width: auto !important; margin: 0 !important; }
.ms-cs-grid .grid-sizer, .ms-cs-grid .gutter-sizer { display: none; }
@media (max-width: 980px) {
  .ms-cs-grid .dipi-filtered-posts-item .grid { grid-template-columns: repeat(2, 1fr); }
}

/* Homepage engagements strip — swipeable slider: 6 cards on desktop, 3 on
   phone (the grid's first two children are Masonry sizer divs, so cards
   start at :nth-child(3)). */
#work .ms-cs-grid .dipi-filtered-posts-item .grid { display: flex !important; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; gap: 18px; padding: 2px 2px 14px; scrollbar-width: thin; scrollbar-color: #DDE0E6 transparent; }
#work .ms-cs-grid .grid-item { display: block !important; flex: 0 0 32%; min-width: 300px; scroll-snap-align: start; }
#work .ms-cs-grid .grid-item:nth-child(n+9) { display: none !important; }

/* Footer account links — WP's logged-in body class picks the right label */
.ms-footer-account { display: none; }
body.logged-in .ms-footer-account { display: inline; }
body.logged-in .ms-footer-login { display: none; }

/* Contact page: logged-out visitors get the form, logged-in get Calendly */
body.logged-in .ms-contact-form { display: none; }
body:not(.logged-in) .ms-bookacall { display: none; }

/* My Account — brand-aligned navigation and content */
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; border: 1px solid #E6E8ED; border-radius: 14px; overflow: hidden; }
.woocommerce-MyAccount-navigation li { margin: 0; border-bottom: 1px solid #EEEFF3; }
.woocommerce-MyAccount-navigation li:last-child { border-bottom: none; }
.woocommerce-MyAccount-navigation li a { display: block; padding: 13px 18px; font-size: 14px; font-weight: 500; color: #5A5F6A; }
.woocommerce-MyAccount-navigation li.is-active a { color: #5B5BD6; font-weight: 600; background: #F7F7FD; }
.woocommerce-MyAccount-navigation li a:hover { color: #16181D; background: #FAFAFB; }
.woocommerce-account .woocommerce-form-login, .woocommerce-account .woocommerce-form-register { border: 1px solid #E6E8ED; border-radius: 14px; padding: 30px; }
.woocommerce-account .woocommerce-form-login .woocommerce-form-login__submit { background: #5B5BD6 !important; border-radius: 9px !important; }

/* WooCommerce — brand-aligned cart / checkout / product */
.woocommerce-page h1.entry-title, .woocommerce h1.product_title { font-weight: 600; letter-spacing: -0.025em; color: #16181D; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce a.checkout-button, .woocommerce button[name="update_cart"], .woocommerce .wc-block-cart__submit-button,
.woocommerce #place_order, .woocommerce .single_add_to_cart_button { background: #5B5BD6 !important; color: #fff !important; font-weight: 600; border: none; border-radius: 9px !important; padding: 13px 24px; }
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce #place_order:hover, .woocommerce .single_add_to_cart_button:hover { background: #4F4FC2 !important; }
.woocommerce table.shop_table { border: 1px solid #E6E8ED; border-radius: 14px; border-collapse: separate; border-spacing: 0; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { border-color: #EEEFF3; }
.woocommerce table.shop_table thead th { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #8A8F98; }
.woocommerce .cart_totals h2, .woocommerce-checkout h3 { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #16181D; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce .quantity .qty, .woocommerce form .form-row select { background: #fff; border: 1px solid #DDE0E6; border-radius: 9px; padding: 12px 14px; color: #16181D; font-family: inherit; }
.woocommerce form .form-row input.input-text:focus, .woocommerce form .form-row textarea:focus { border-color: #5B5BD6; outline: none; box-shadow: 0 0 0 3px rgba(91,91,214,0.12); }
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-top-color: #5B5BD6; background: #F7F7FD; border-radius: 10px; color: #40454F; }
.woocommerce-message::before, .woocommerce-info::before { color: #5B5BD6; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 18px; font-weight: 600; color: #16181D; }
.woocommerce div.product p.price, .woocommerce div.product span.price, .woocommerce .price { color: #16181D; font-weight: 700; }
.woocommerce table.variations th, .woocommerce table.variations td { padding-bottom: 12px; }
.woocommerce table.variations label { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #8A8F98; }
.woocommerce .woocommerce-breadcrumb { font-size: 12.5px; color: #8A8F98; }
.woocommerce .related.products h2 { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; color: #16181D; }
/* Block-based cart/checkout components */
.wc-block-cart-item__image, .wc-block-components-order-summary-item__image, .woocommerce table.shop_table td.product-thumbnail { display: none !important; }
.wc-block-components-order-summary-item__description { padding-left: 0 !important; }
.wc-block-cart-item__wrap { padding-left: 0; }
.wc-block-components-button:not(.is-link) { background-color: #5B5BD6 !important; color: #fff !important; border-radius: 9px !important; font-weight: 600; }
.wc-block-components-button:not(.is-link):hover { background-color: #4F4FC2 !important; }
.wc-block-components-text-input input, .wc-block-components-combobox .components-combobox-control__input { border-radius: 9px !important; border-color: #DDE0E6 !important; }
.wc-block-components-text-input input:focus { border-color: #5B5BD6 !important; box-shadow: 0 0 0 3px rgba(91,91,214,0.12) !important; }
.wc-block-components-quantity-selector { border-radius: 9px; }
.is-large.wc-block-cart .wc-block-cart__totals-title { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #8A8F98; }

/* Contact Gravity Form — dark treatment matching the section */
.ms-gform .gform_title, .ms-gform .gform_required_legend { display: none !important; }
/* The design is placeholders-only; GF's newer themes (Orbital) ignore the
   hidden_label setting, so hide labels ourselves and keep the required
   chips out of every skin. Empty-submit feedback comes from the per-field
   validation messages, which stay styled and visible. */
.ms-gform:not(.ms-gform-labels) .gform_wrapper .gfield_label { display: none !important; }
.ms-gform .gfield_required, .ms-gform-labels .gfield_required, .ms-gform-light .gfield_required { display: none !important; }
.ms-gform .gform_wrapper input[type="text"], .ms-gform .gform_wrapper input[type="email"], .ms-gform .gform_wrapper textarea { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 10px; color: #F4F5F8; font-family: inherit; font-size: 15px; padding: 14px 16px; width: 100%; box-sizing: border-box; }
.ms-gform .gform_wrapper input:focus, .ms-gform .gform_wrapper textarea:focus { background: rgba(255,255,255,0.10); color: #FFFFFF; outline: none; }
.ms-gform .gform_wrapper ::placeholder { color: #8A8F98; opacity: 1; }
.ms-gform .gform_wrapper input::placeholder, .ms-gform .gform_wrapper textarea::placeholder { color: #8A8F98 !important; opacity: 1 !important; }
.ms-gform .gform_wrapper textarea { min-height: 150px; }
.ms-gform .gform_wrapper .gform_fields { grid-row-gap: 14px; grid-column-gap: 14px; }
.ms-gform .gform_footer { display: flex; justify-content: flex-end; padding: 4px 0 0; margin: 0; }
.ms-gform .gform_wrapper input[type="submit"], .ms-gform .gform_wrapper .gform_button { background: #5B5BD6; color: #fff; font-family: inherit; font-size: 15px; font-weight: 600; padding: 13px 24px; border: none; border-radius: 9px; cursor: pointer; }
.ms-gform .gform_wrapper input[type="submit"]:hover { background: #4F4FC2; }
.ms-gform .gform_wrapper .gfield_validation_message, .ms-gform .gform_wrapper .validation_message { background: transparent; border: none; color: #FCA5A5; font-size: 13px; padding: 4px 0 0; }
.ms-gform .gform_wrapper .gform_validation_errors { background: rgba(252,165,165,0.08); border: 1px solid rgba(252,165,165,0.3); border-radius: 10px; color: #FCA5A5; }
.ms-gform .gform_confirmation_message { color: #F4F5F8; font-size: 16px; text-align: center; }

/* Mobile menu dropdown: solid white at every collapsed width, matching the
   module's native mobile_menu_bg_color (belt and braces for in-app browsers). */
@media (max-width: 980px) {
  .et-l--header .et_pb_menu .et_mobile_menu,
  .et-l--header .et_pb_menu .et_mobile_menu ul,
  .et-l--header .et_pb_menu .et_mobile_menu li { background-color: #FFFFFF !important; }
}

/* Consulting page: FAQ accordion (native Divi accordion, restyled to spec) */
.ms-faq .et_pb_toggle { background: #fff; border: 1px solid #E6E8ED; border-radius: 12px; padding: 0; margin-bottom: 10px; }
.ms-faq h5.et_pb_toggle_title, .ms-faq .et_pb_toggle_title { font-size: 15.5px; font-weight: 600; color: #16181D !important; padding: 18px 52px 18px 22px; cursor: pointer; position: relative; }
.ms-faq .et_pb_toggle.et_pb_toggle_open .et_pb_toggle_title { padding-bottom: 8px; }
.ms-faq .et_pb_toggle_title:before { content: "+" !important; font-family: inherit !important; font-size: 18px; font-weight: 500; color: #8A8F98; right: 22px; transform: none; }
.ms-faq .et_pb_toggle_open .et_pb_toggle_title:before { content: "\2212" !important; display: block; }
.ms-faq .et_pb_toggle_content { padding: 0 22px 20px; font-size: 14.5px; line-height: 1.65; color: #5A5F6A; }

/* Dark form with visible labels (consulting CTA) */
.ms-gform-labels .gform_wrapper label.gfield_label { display: block; font-size: 13.5px; font-weight: 600; color: #E9EBEF !important; margin-bottom: 8px; text-align: left; }
.ms-gform-labels .gform_wrapper .gform_fields { grid-row-gap: 22px; }

/* Light form (partnership application) */
.ms-gform-light .gform_title, .ms-gform-light .gform_required_legend { display: none !important; }
.ms-gform-light .gform_wrapper label.gfield_label { display: block; font-size: 14px; font-weight: 600; color: #16181D !important; margin-bottom: 8px; }
.ms-gform-light .gform_wrapper input[type="text"], .ms-gform-light .gform_wrapper input[type="email"], .ms-gform-light .gform_wrapper select, .ms-gform-light .gform_wrapper textarea { background: #fff; border: 1px solid #E6E8ED; border-radius: 9px; color: #16181D; font-family: inherit; font-size: 15px; padding: 13px 14px; width: 100%; box-sizing: border-box; }
.ms-gform-light .gform_wrapper input:focus, .ms-gform-light .gform_wrapper select:focus, .ms-gform-light .gform_wrapper textarea:focus { border-color: #5B5BD6; outline: none; box-shadow: 0 0 0 3px rgba(91,91,214,0.12); }
.ms-gform-light .gform_wrapper select.gfield_select { -webkit-appearance: none; appearance: none; background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%235A5F6A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding: 13px 40px 13px 14px; line-height: 1.4; cursor: pointer; }
.ms-gform-light .gform_wrapper .gform_fields { grid-row-gap: 26px; }
.ms-gform-light .gform_footer { padding: 14px 0 0; margin: 0; }
.ms-gform-light .gform_wrapper input[type="submit"], .ms-gform-light .gform_wrapper .gform_button { background: #5B5BD6; color: #fff; font-family: inherit; font-size: 15.5px; font-weight: 600; padding: 14px 34px; border: none; border-radius: 9px; cursor: pointer; }
.ms-gform-light .gform_wrapper input[type="submit"]:hover, .ms-gform-light .gform_wrapper .gform_button:hover { background: #4F4FC2; }
.ms-gform-light .gform_wrapper .gfield_validation_message, .ms-gform-light .gform_wrapper .validation_message { background: transparent; border: none; color: #C0392B; font-size: 13px; padding: 4px 0 0; }

/* Plans toggle labels */
.ms-price-toggle .dipi-content-toggle__text h5 { font-size: 13.5px; font-weight: 600; color: #5A5F6A; margin: 0; padding: 0; }

/* Pricing cards — equal height, button pinned to bottom */
.ms-price-card, .ms-price-card .et_pb_text_inner { height: 100%; }
.ms-price-card .et_pb_text_inner { display: flex; flex-direction: column; }

/* Plan chooser / switch page (single product) */
.single-product .woocommerce-breadcrumb { display: none; }
.woocommerce.single-product div.product div.summary, .single-product div.product .summary { width: 100% !important; float: none !important; max-width: 720px; }
.woocommerce div.product table.variations select { background: #fff; border: 1px solid #DDE0E6; border-radius: 9px; padding: 10px 36px 10px 12px; color: #16181D; font-family: inherit; font-size: 14.5px; }
.ms-switch-note { background: #F7F7FD; border: 1px solid #DDDDF2; border-radius: 12px; padding: 18px 22px; margin: 0 0 28px; font-size: 14.5px; line-height: 1.6; color: #40454F; }
.ms-switch-note strong { color: #16181D; display: block; margin-bottom: 4px; }
.ms-plan-compare-wrap { margin: 40px 0 8px; }
.ms-plan-compare-wrap > h2 { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; color: #16181D; margin-bottom: 18px; }
.ms-plan-compare { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ms-plan-card { background: #fff; border: 1px solid #E6E8ED; border-radius: 14px; padding: 30px; display: flex; flex-direction: column; }
.ms-plan-card.is-current { border-color: #5B5BD6; box-shadow: 0 0 0 3px rgba(91,91,214,0.12); }
.ms-plan-card__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.ms-plan-card__name { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #8A8F98; }
.ms-plan-card__badge { font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #5B5BD6; }
.ms-plan-card__price { font-size: 34px; font-weight: 700; letter-spacing: -1px; color: #16181D; }
.ms-plan-card__price span { font-size: 14px; font-weight: 400; color: #8A8F98; letter-spacing: 0; }
.ms-plan-card__alt { font-size: 12px; color: #8A8F98; margin: 2px 0 14px; }
.ms-plan-card__blurb { font-size: 13.5px; line-height: 1.55; color: #8A8F98; margin: 0 0 16px; }
.ms-plan-card__features { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.ms-plan-card__features li { position: relative; padding-left: 18px; font-size: 14px; line-height: 1.5; color: #16181D; }
.ms-plan-card__features li::before { content: "\2022"; position: absolute; left: 0; color: #5B5BD6; font-weight: 700; }
.ms-plan-compare__note { font-size: 13px; color: #8A8F98; margin-top: 16px; }

/* My Account — hours bank */
.ms-hours-summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 24px; }
.ms-hours-stat { background: #fff; border: 1px solid #E6E8ED; border-radius: 14px; padding: 22px; text-align: center; }
.ms-hours-stat.is-primary { border-color: #5B5BD6; background: #F7F7FD; }
.ms-hours-stat__num { display: block; font-size: 30px; font-weight: 700; letter-spacing: -0.5px; color: #16181D; }
.ms-hours-stat.is-primary .ms-hours-stat__num { color: #5B5BD6; }
.ms-hours-stat__label { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #8A8F98; }
.ms-hours-heading { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; color: #16181D; margin: 26px 0 12px; }
.ms-hours-table td, .ms-hours-table th { font-size: 14px; }
.ms-hours-col { text-align: right; }
.ms-hours-table .is-credit { color: #1D7A46; font-weight: 600; }
.ms-hours-table .is-debit { color: #16181D; font-weight: 600; }
.ms-hours-strip { background: #F7F7FD; border: 1px solid #DDDDF2; border-radius: 12px; padding: 16px 20px; margin: 6px 0 22px; font-size: 14.5px; color: #40454F; }
.ms-hours-buy { border: 1px solid #E6E8ED; border-radius: 14px; padding: 26px; margin: 6px 0 26px; }
.ms-hours-buy__copy h2 { font-size: 18px; font-weight: 600; color: #16181D; margin: 0 0 6px; }
.ms-hours-buy__copy p { font-size: 13.5px; color: #8A8F98; margin: 0 0 16px; }
.ms-hours-buy__options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ms-hours-buy__option { display: flex; flex-direction: column; gap: 2px; border: 1px solid #E6E8ED; border-radius: 12px; padding: 16px 18px; text-decoration: none; transition: all .15s; }
.ms-hours-buy__option:hover { border-color: #5B5BD6; box-shadow: 0 0 0 3px rgba(91,91,214,0.10); }
.ms-hours-buy__pack { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #8A8F98; }
.ms-hours-buy__price { font-size: 20px; font-weight: 700; color: #16181D; }
.ms-hours-buy__price .woocommerce-Price-amount { color: inherit; }
.ms-hours-buy__rate { font-size: 12px; color: #8A8F98; }

/* Log hours form (admin) */
.ms-log-form { border: 1px solid #E6E8ED; border-radius: 14px; padding: 26px; margin-bottom: 10px; }
.ms-log-form label { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #8A8F98; margin-bottom: 6px; }
.ms-log-form select, .ms-log-form input[type="number"], .ms-log-form textarea { width: 100%; background: #fff; border: 1px solid #DDE0E6; border-radius: 9px; padding: 12px 14px; color: #16181D; font-family: inherit; font-size: 14.5px; box-sizing: border-box; }
.ms-log-form .form-row { margin: 0 0 16px; }

/* Subscription actions row + Book a Call */
table.subscription_details .button { margin: 0 8px 8px 0; }
.ms-account-intro { font-size: 15px; color: #5A5F6A; margin-bottom: 6px; }
.ms-calendly { margin-top: 8px; }
.ms-dash-shortcuts { display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 767px) {
  .ms-plan-compare, .ms-hours-buy__options { grid-template-columns: 1fr; }
  .ms-hours-summary { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .ms-hours-stat { padding: 14px 8px; }
  .ms-hours-stat__num { font-size: 22px; }
}

/* ---------- Phone (<= 767px) ---------- */
@media (max-width: 767px) {
  /* Hero: both CTAs full-width, stacked; portrait below text */
  .ms-hero-cta p { display: flex; flex-direction: column; gap: 12px; margin: 0; }
  .ms-hero-cta a { display: flex !important; justify-content: center; width: 100%; box-sizing: border-box; margin: 0 !important; }
  .ms-hero-photo { max-width: 100%; margin-top: 8px; }

  /* About: full-width, cropped portrait on top */
  .ms-about-img, .ms-about-img .et_pb_image_wrap { max-width: 100% !important; width: 100% !important; }
  .ms-about-img img { width: 100%; height: 320px; object-fit: cover; }

  /* Case-study cards single-column on phone */
  .ms-cs-grid .dipi-filtered-posts-item .grid { grid-template-columns: 1fr; }

  /* Consulting hero rate card: full width under the stacked hero copy */
  .ms-ratecard > div { max-width: 100% !important; margin-top: 8px; }

  /* Homepage strip on phone: 3 cards, one per view with the next peeking */
  #work .ms-cs-grid .grid-item { flex: 0 0 86%; min-width: 0; }
  #work .ms-cs-grid .grid-item:nth-child(n+6) { display: none !important; }

  /* All Get Started buttons use the accent style on phone */
  .ms-price-card a[href*="add-to-cart"] { background: #5B5BD6 !important; color: #ffffff !important; border-color: #5B5BD6 !important; }

  /* Full-width buttons + mobile type scale (per Matt Shockey Mobile.dc.html) */
  #leadership .et_pb_button, #work .et_pb_button, #contact .et_pb_button { display: block; width: 100%; text-align: center; box-sizing: border-box; }
  .ms-trust-items span { font-size: 13.5px !important; margin: 0 10px 10px !important; }
  .ms-price-card span[style*="font-size:38px"] { font-size: 34px !important; }

  /* Mobile menu: hamburger in a bordered box + readable dropdown links */
  .et-l--header .et_pb_menu .mobile_menu_bar { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid #E2E4EA; border-radius: 10px; background: #fff; }
  .et-l--header .et_pb_menu .mobile_menu_bar:before { line-height: 38px; color: #16181D; }
  .et-l--header .et_pb_menu .et_mobile_menu { background: #fff !important; border-top: 1px solid #ECEDF0; box-shadow: 0 18px 34px rgba(16,17,20,0.12); z-index: 99; }
  .et-l--header .et_pb_menu .et_mobile_menu li a { color: #40454F !important; font-weight: 500; padding: 13px 5%; }
  .et-l--header .et_pb_menu .et_mobile_menu li.menu-cta a { color: #fff !important; background: #5B5BD6; border-radius: 10px; margin: 12px 5% 4px; text-align: center; font-weight: 600; }
}