/* Homepage refinement: readable type, stable slides and a connected fulfillment flow. */
.home .p4-main { --p7-text: #536782; }
.home .p4-main p { font-size: 17px; line-height: 1.75; }
.home .p4-main .p4-eyebrow { font-size: 13px; letter-spacing: .09em; }
.home .p4-main h2 { font-size: clamp(34px, 3vw, 44px); }
.home .p4-main .p4-helper { font-size: 14px; }
.home .p4-main .p4-button .wp-block-button__link,
.home .p4-main .p4-text-link a { font-size: 16px; }
.home .p4-main .p4-capability h2 { font-size: 17px; }
.home .p4-main .p4-capability p { font-size: 14px; }
.home .p4-capability { padding-inline: 23px; }
.home .p4-capability:first-child { padding-left: 0; }
.home .p4-main .p5-service-card h3 { font-size: 20px; }
.home .p4-main .p5-service-card > p:not(.p4-text-link) { font-size: 16px; line-height: 1.7; }
.home .p5-service-card .p4-text-link a { font-size: 15px; }
.home .p4-main .p6-step-summary h3 { font-size: 28px; }
.home .p4-main .p6-step-summary > p:last-child { font-size: 17px; }
.home .p4-main .p5-panel-kicker { font-size: 13px; }
.home .p6-product-walkthrough .p5-tablist button { font-size: 16px; }
.home .p4-main .p6-walkthrough-note { font-size: 14px; }
.home .p4-main .p4-service h3 { font-size: 16px; }
.home .p4-main .p4-service-note { font-size: 14px; }
.home .p4-main .p4-operations-photo figcaption { font-size: 14px; letter-spacing: .025em; }
.home .p4-main .p6-team-five .p4-team-caption h3 { font-size: 18px; }
.home .p4-main .p6-team-five .p4-team-caption p { font-size: 13px; line-height: 1.5; }
.home .p4-main .p4-blog-category { font-size: 12px; }
.home .p4-main .p4-blog-body > p:not(.p4-blog-category) { font-size: 16px; }
.home .p4-main .p4-read { font-size: 15px; }
.home .p4-main .p4-faq-list summary { font-size: 17px; }
.home .p4-main .p4-faq-answer p { font-size: 16px; }
.home .p4-main .p4-faq-answer a { font-size: 15px; }
.home .p4-main .p4-final-copy > p:last-child { font-size: 17px; }
.p6-screenshot figcaption { font-size: 12px; color: #536782; }
.p6-preview-open > span { font-size: 12px; }
.p6-lightbox-head p { font-size: 14px; }
.p6-lightbox-close { font-size: 14px; }

/* All variants contribute to one grid track. Hidden variants cannot receive focus. */
.p6-hero .p4-hero-copy h1 { display: grid; align-items: center; min-height: 0; font-size: clamp(42px,3.55vw,52px); }
.p6-hero .p6-headline, .p6-hero .p6-headline[hidden] { display: block !important; grid-area: 1 / 1; }
.p6-hero .p6-headline[hidden] { visibility: hidden; pointer-events: none; }
.p7-hero-leads { display: grid; margin-top: 24px !important; }
.p6-hero .p4-hero-copy .p7-hero-leads .p6-hero-lead { grid-area: 1 / 1; display: block !important; min-height: 0; margin: 0; font-size: 18px; line-height: 1.75; }
.p7-hero-leads .p6-hero-lead:not(.is-active) { visibility: hidden; pointer-events: none; }
.p6-hero-controls { gap: 15px; align-items: stretch; }
.p6-hero-selectors { gap: 16px; flex: 1; flex-wrap: nowrap; }
.p6-hero-selectors button { font-size: 13px; gap: 6px; min-height: 48px; white-space: nowrap; }
.p6-rotation-toggle { font-size: 12px; min-height: 44px; min-width: 58px; }
.p6-display-caption { font-size: 12px; letter-spacing: .06em; }
.p6-display-caption > span:last-child { display: none; }
.p6-display-foot { font-size: 14px; }
[data-p5-tabs][data-enhanced] > .p5-panels,
[data-p5-tabs][data-enhanced] > .p7-flow-panels { display: grid; align-items: start; }
[data-p5-tabs][data-enhanced] > .p5-panels > [role=tabpanel],
[data-p5-tabs][data-enhanced] > .p7-flow-panels > [role=tabpanel] { grid-area: 1 / 1; animation: none; }
[data-p5-tabs][data-enhanced] > .p5-panels > [role=tabpanel][hidden],
[data-p5-tabs][data-enhanced] > .p7-flow-panels > [role=tabpanel][hidden] { display: block !important; visibility: hidden; pointer-events: none; }

/* Essential workflow previews do not share hidden/animated paint layers. */
.home .p6-product-walkthrough[data-enhanced]>.p5-panels>[role=tabpanel][hidden]{display:none!important}
.home .p6-product-walkthrough[data-enhanced]>.p5-panels>[role=tabpanel]:not([hidden]) .p6-screenshot{display:block;visibility:visible;opacity:1;transform:none}

/* Premium integration console: actual brands, clear handoff and deliberate selection. */
.home .p4-shopify { padding-block: 88px; background: #0c2141; }
.home .p4-shopify-grid { grid-template-columns: .82fr 1.18fr; gap: 58px; }
.home .p4-shopify h2 { font-size: clamp(36px,3.15vw,46px); line-height: 1.16; }
.home .p4-shopify-copy .p4-lead { font-size: 18px; color: #c2d0e5; max-width: 430px; }
.home .p4-shopify .p4-helper { color: #b6c8e0; }
.p7-connection { min-width: 0; padding: 24px; background: linear-gradient(145deg,#1a3c69,#102b50 70%); border: 1px solid #42648e; border-radius: 22px; box-shadow: 0 28px 70px -32px #020c20, inset 0 1px #ffffff12; }
.p7-console-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #d7e7fc; font-size: 12px; font-weight: 650; letter-spacing: .08em; }
.p7-console-tag { border: 1px solid #537298; border-radius: 6px; padding: 6px 10px; color: #c7d8ee; font-size: 12px; font-weight: 500; letter-spacing: 0; }
.p7-brand-route { display: grid; grid-template-columns: 1fr .7fr 1fr; gap: 18px; align-items: center; padding: 25px 10px 28px; }
.p7-brand-node { display: flex; flex-direction: column; align-items: center; gap: 12px; color: #c1d4ee; font-size: 14px; text-align: center; }
.p7-logo-tile { width: 100%; max-width: 175px; height: 66px; padding: 16px; background: #fff; border-radius: 10px; box-shadow: 0 4px 16px #081c3633; display: flex; align-items: center; justify-content: center; }
.p7-logo-tile img { width: 130px; height: 36px; object-fit: contain; }
.p7-route-link { display: grid; grid-template-columns: 1fr 24px; align-items: center; color: #a9ccff; gap: 8px; padding-bottom: 24px; font-size: 10px; letter-spacing: .08em; }
.p7-route-link svg { fill: currentColor; }
.p7-route-link i { grid-column: 1 / -1; height: 1px; background: #4d77aa; }
.p7-route-link svg:nth-of-type(2) { transform: rotate(180deg); }
.p7-route-link > span:last-child { justify-self: end; }
.p7-flow-tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; padding: 5px; background: #071a35; border: 1px solid #35567e; border-radius: 12px; }
.p7-flow-tabs button { min-height: 50px; padding: 12px 7px; border: 0; border-radius: 8px; background: transparent; color: #bacce4; display: flex; justify-content: center; align-items: center; gap: 8px; font: 600 15px/1.4 P4Inter,sans-serif; cursor: pointer; transition: background .18s,color .18s; }
.p7-flow-tabs button:hover { background: #24466e; color: #fff; }
.p7-flow-tabs button[aria-selected=true] { background: #fff; color: #153e86; box-shadow: 0 2px 7px #0002; }
.p7-flow-number { font-size: 12px; color: #8faed4; }
.p7-flow-tabs button[aria-selected=true] .p7-flow-number { color: #315eb0; }
.p7-flow-panels { margin-top: 16px; background: #fff; border: 1px solid #dce7f6; border-radius: 12px; overflow: hidden; }
.p7-flow-panel { padding: 26px; }
.home .p4-main .p7-flow-kicker { color: #3158a0; font-size: 12px; font-weight: 700; letter-spacing: .07em; margin-bottom: 13px; }
.home .p4-main .p7-flow-panel h3 { color: #102b4a; font-size: 25px; line-height: 1.3; margin-bottom: 13px; text-wrap: initial; }
.home .p4-main .p7-flow-copy { color: #526780; font-size: 16px; line-height: 1.7; }
.p7-handoff { display: grid; grid-template-columns: 1fr 24px 1fr; gap: 13px; align-items: center; margin-top: 23px; padding: 19px; border: 1px solid #dce6f3; border-radius: 9px; background: #f4f7fc; }
.p7-handoff > div { min-width: 0; }
.p7-handoff-icon { display: flex; width: 32px; height: 32px; align-items: center; justify-content: center; color: #315ba0; margin-bottom: 9px; }
.p7-handoff-icon svg,.p7-handoff-arrow svg { fill: currentColor; }
.p7-handoff strong { display: block; font-size: 15px; font-weight: 650; line-height: 1.45; color: #213957; }
.home .p4-main .p7-handoff p { font-size: 13px; line-height: 1.65; color: #5b708e; margin-top: 6px; }
.p7-handoff-arrow { display: flex; color: #4979bc; }
.p7-checkpoints { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 20px 0 0; padding: 0; list-style: none; }
.p7-checkpoints li { display: flex; align-items: center; gap: 5px; font-size: 13px; line-height: 1.5; color: #355474; }
.p7-checkpoints li span { display: flex; color: #2c6a9c; }.p7-checkpoints svg { fill: currentColor; }
.home .p4-main .p7-flow-foot { font-size: 13px; line-height: 1.65; color: #61738c; border-top: 1px solid #e2eaf5; padding-top: 16px; margin-top: 19px; }

@media(max-width:1180px) {
  .p6-hero .p4-hero-copy h1 { font-size: 43px; }
  .p6-hero .p4-hero-copy .p7-hero-leads .p6-hero-lead { font-size: 17px; }
  .p6-hero-controls { flex-wrap: wrap; }.p6-hero-selectors { flex: 0 1 auto; }
  .home .p4-shopify-grid { gap: 30px; grid-template-columns: .75fr 1.25fr; }
  .p7-connection { padding: 19px; }.p7-flow-panel { padding: 23px; }
  .p7-console-tag { display: none; }.p7-brand-route { gap: 13px; padding-inline: 0; }
  .p7-logo-tile { padding: 11px; }.p7-handoff { padding: 15px; gap: 9px; }
}
@media(max-width:900px) {
  .p6-hero .p4-hero-copy h1 { font-size: 46px; }.p6-hero .p4-hero-copy { max-width: 720px; }
  .p6-hero .p4-hero-copy .p7-hero-leads .p6-hero-lead { max-width: 650px; }
  .p6-hero-controls { flex-wrap: nowrap; }.p6-hero-selectors { flex: 0 1 auto; }
  .home .p4-shopify-grid { grid-template-columns: 1fr; gap: 38px; }
  .home .p4-shopify-copy .p4-lead { max-width: 620px; }
  .p7-connection { width: 100%; max-width: 720px; margin-inline: auto; padding: 26px; }
  .p7-console-tag { display: inline; }.p7-flow-panel { padding: 28px; }
  .home .p4-main .p6-team-scroll-hint { font-size: 13px; }
}
@media(max-width:600px) {
  .home .p4-main p { font-size: 16px; }.home .p4-main .p4-eyebrow { font-size: 12px; }
  .home .p4-main h2 { font-size: 33px; }.home .p4-main .p4-helper { font-size: 13px; }
  .home .p4-main .p4-button .wp-block-button__link,.home .p4-main .p4-text-link a { font-size: 14px; }
  .p6-hero .p4-hero-copy h1 { font-size: clamp(32px,8.6vw,43px); }
  .p7-hero-leads { margin-top: 21px !important; }
  .p6-hero .p4-hero-copy .p7-hero-leads .p6-hero-lead { font-size: 16px; line-height: 1.75; }
  .p6-hero-controls { flex-wrap: wrap; gap: 4px 12px; }
  .p6-hero-selectors {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    flex: 1 0 100%;
    min-width: 0;
    gap: 8px;
  }
  .p6-hero-selectors button {
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding-block: 6px;
    gap: 2px;
    font-size: 12px;
    text-align: start;
    white-space: normal;
  }
  .p6-rotation-toggle { margin-left: auto; min-height: 36px; padding: 8px 12px; }
  .p6-display-caption { font-size: 11px; }.p6-display-foot { font-size: 13px; }
  .home .p4-main .p4-capability h2 { font-size: 16px; }.home .p4-main .p4-capability p { font-size: 14px; }
  .home .p4-capability { padding-inline: 0; }
  .home .p4-main .p6-step-summary h3 { font-size: 25px; }.home .p4-main .p6-step-summary > p:last-child { font-size: 16px; }
  .home .p4-shopify { padding-block: 64px; }.home .p4-shopify h2 { font-size: 34px; }
  .home .p4-shopify-copy .p4-lead { font-size: 17px; }
  .p7-connection { padding: 16px; border-radius: 17px; }
  .p7-console-top { font-size: 11px; }.p7-console-tag { display: none; }
  .p7-brand-route { grid-template-columns: 1fr 45px 1fr; gap: 10px; padding: 23px 0; }
  .p7-logo-tile { height: 56px; padding: 9px; border-radius: 8px; }.p7-logo-tile img { height: 30px; }
  .p7-brand-node { font-size: 12px; gap: 10px; }
  .p7-route-link { display: flex; flex-direction: column; padding-bottom: 20px; gap: 0; }
  .p7-route-link > span,.p7-route-link i { display: none; }
  .p7-flow-tabs { gap: 2px; padding: 4px; border-radius: 9px; }
  .p7-flow-tabs button { flex-direction: column; gap: 5px; font-size: 12px; padding: 10px 3px; min-height: 61px; }
  .p7-flow-number { font-size: 11px; }
  .p7-flow-panel { padding: 22px 18px; }
  .home .p4-main .p7-flow-kicker { font-size: 11px; }
  .home .p4-main .p7-flow-panel h3 { font-size: 23px; }
  .home .p4-main .p7-flow-copy { font-size: 15px; }
  .p7-handoff { grid-template-columns: 1fr; gap: 11px; padding: 16px; margin-top: 20px; }
  .p7-handoff > div { display: grid; grid-template-columns: 26px 1fr; gap: 0 9px; }
  .p7-handoff-icon { grid-row: 1 / 3; width: 26px; margin: 0; }
  .home .p4-main .p7-handoff p { grid-column: 2; font-size: 13px; margin-top: 4px; }
  .p7-handoff-arrow { padding-left: 3px; }.p7-handoff-arrow svg { transform: rotate(90deg); }
  .p7-checkpoints { gap: 10px 12px; }.p7-checkpoints li { font-size: 13px; }
  .home .p4-main .p7-flow-foot { font-size: 13px; }
  .home .p4-main .p6-team-five .p4-team-caption h3 { font-size: 16px; }.home .p4-main .p6-team-five .p4-team-caption p { font-size: 12px; }
}
@media(prefers-reduced-motion:reduce) { .p7-flow-tabs button { transition: none; } }
/* Shared-cell hero crossfade keeps the display size stable. */
.home .p6-hero-display{display:grid;grid-template-columns:minmax(0,1fr)}
.home .p6-hero-display>.p6-display-caption{grid-area:1/1}
.home .p6-hero-display>.p6-hero-screen{grid-area:2/1}
.home .p6-hero-display>.p6-display-foot{grid-area:3/1}
.home .p6-hero .p6-hero-screen[hidden]{display:block!important;visibility:hidden;pointer-events:none}
.home .p6-hero :is(.p6-headline,.p6-hero-lead,.p6-hero-screen).p6-fading-out{visibility:visible!important;pointer-events:none}
