/* Full-screen, decision-first journey for the formation configurator. */
.config-shop-page {
    height: calc(100svh - 124px);
    min-height: 0;
    padding: 0 !important;
    overflow: hidden;
    background: #f7f7f5;
}

.journey-progress {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 5;
    width: min(100% - 48px, 1240px);
    display: flex;
    gap: 0;
    margin: 0 auto;
    padding: 16px 0 12px;
    transform: translateX(-50%);
}

.journey-progress button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 15px 0 0;
    border: 0;
    background: transparent;
    color: rgba(34, 26, 76, 0.46);
    font-size: 11px;
    font-weight: 800;
}

.journey-progress button + button { padding-left: 26px; }
.journey-progress button + button::before { content: ""; position: absolute; left: 9px; width: 8px; height: 8px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); }
.journey-progress button span { width: 23px; height: 23px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid currentColor; border-radius: 50%; font-size: 10px; }
.journey-progress button.is-active { color: #5147c6; }
.journey-progress button.is-active span { border-color: #5147c6; background: #5147c6; color: #fff; box-shadow: 0 5px 11px rgba(81, 71, 198, 0.2); }
.journey-progress button.is-complete { color: #397d45; }.journey-progress button.is-complete span { border-color: #bce988; background: #d9fab1; color: #221a4c; }

.journey-viewport { position: relative; width: 100%; height: 100%; overflow: hidden; }
.config-journey { width: 300%; height: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; transform: translateX(0); transition: transform 560ms cubic-bezier(0.22, 1, 0.36, 1); }
.config-journey[data-active-step="2"] { transform: translateX(-33.333333%); }.config-journey[data-active-step="3"] { transform: translateX(-66.666667%); }

.journey-screen {
    min-width: 0;
    box-sizing: border-box;
    height: 100%;
    min-height: 0;
    align-self: start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-top: 62px;
}

.journey-formula-screen { background: #f7f7f5; }
.journey-formula-screen { justify-content: flex-start; }.journey-formula-screen .config-hero { padding: 24px 0 8px; background: radial-gradient(circle at 50% 0%, rgba(104, 92, 241, 0.12), transparent 38%), linear-gradient(180deg, #fff 0%, #f6f5ff 100%); }.journey-formula-screen .config-hero .config-shell { gap: 5px; }.journey-formula-screen .config-hero h1 { font-size: clamp(29px, 3vw, 38px); }.journey-formula-screen .config-hero-copy > p { margin-top: 8px; font-size: 13px; }.journey-formula-screen .hero-actions, .journey-formula-screen .hero-steps { display: none; }
.journey-formula-screen .formula-step { padding: 18px 0 26px; background: #fff; }.journey-formula-screen .step-heading { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; }.journey-formula-screen .step-number { width: 32px; height: 32px; font-size: 10px; }.journey-formula-screen .step-heading h2 { font-size: clamp(26px, 2.5vw, 35px); }.journey-formula-screen .volume-picker { margin-top: 14px; }.journey-formula-screen .volume-option { min-height: 132px; }.journey-formula-screen .formula-help { margin: 10px 0 0; }

.journey-actions { display: flex; align-items: center; gap: 12px; }.journey-actions-formula { justify-content: flex-end; margin-top: 16px; }.journey-actions-legal { justify-content: flex-end; margin-top: 24px; }
.journey-primary, .journey-light, .journey-secondary { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 17px; border-radius: 7px; font-size: 13px; font-weight: 850; }
.journey-primary { border: 0; background: #221a4c; color: #fff; box-shadow: 0 13px 27px rgba(34, 26, 76, 0.18); }.journey-primary:hover { background: #5147c6; }.journey-light { border: 0; background: #d9fab1; color: #221a4c; }.journey-light:hover { background: #c7ee9c; }.journey-secondary { border: 1px solid rgba(255, 255, 255, 0.28); background: transparent; color: #fff; }.journey-secondary:hover { background: rgba(255, 255, 255, 0.1); }
.journey-primary svg, .journey-light svg { width: 16px; height: 16px; }

.legal-block.journey-screen { justify-content: center; padding: 62px 0 0; }.journey-legal-copy { max-width: 470px; margin: 14px 0 0; color: rgba(255, 255, 255, 0.7); font-size: 14px; line-height: 1.5; }.legal-block.journey-screen .legal-block-inner { padding-top: 22px; }.legal-block.journey-screen::after { bottom: -140px; }

.shop-catalog.journey-screen { justify-content: flex-start; padding: 34px 0 150px; background: #f7f7f5; }.shop-catalog.journey-screen .catalog-toolbar { margin-top: 27px; }.shop-catalog.journey-screen .catalog-plan-reminder button { margin-top: 8px; padding: 0; border: 0; background: transparent; color: #5147c6; font-size: 10px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

/* Category shelves keep the choice library scannable without turning it into a long card grid. */
.module-shelves { display: grid; grid-template-columns: 1fr; gap: 25px; }
.module-shelf { min-width: 0; }
.module-shelf-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.module-shelf-head h3 { margin: 0; color: #221a4c; font-size: 16px; font-weight: 850; letter-spacing: -0.025em; }
.module-shelf-head span { display: inline-flex; align-items: center; gap: 2px; color: #77728a; font-size: 10px; font-weight: 750; }
.module-shelf-head svg { width: 14px; height: 14px; }
.module-shelf-track { display: flex; gap: 12px; padding: 2px 2px 9px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: inline mandatory; scrollbar-width: thin; scrollbar-color: rgba(81, 71, 198, 0.35) transparent; }
.module-tile { position: relative; flex: 0 0 196px; aspect-ratio: 0.8; overflow: hidden; border: 1px solid rgba(34, 26, 76, 0.16); border-radius: 8px; background: #221a4c; box-shadow: 0 8px 18px rgba(34, 26, 76, 0.1); scroll-snap-align: start; transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease; }
.module-tile:hover { z-index: 1; transform: translateY(-3px) scale(1.025); border-color: rgba(104, 92, 241, 0.65); box-shadow: 0 16px 28px rgba(34, 26, 76, 0.18); }
.module-tile.is-selected { border-color: #d9fab1; box-shadow: 0 0 0 2px #685cf1, 0 15px 28px rgba(34, 26, 76, 0.2); }
.module-tile > img { width: 100%; height: 100%; object-fit: cover; opacity: 0.88; transition: transform 320ms ease; }
.module-tile:hover > img { transform: scale(1.05); }
.module-tile::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(17, 12, 45, 0.02) 22%, rgba(17, 12, 45, 0.84) 100%); }
.module-tile-duration, .module-tile-details { position: absolute; top: 9px; z-index: 1; min-height: 23px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-size: 9px; font-weight: 850; }
.module-tile-duration { left: 9px; min-width: 31px; background: rgba(255, 255, 255, 0.92); color: #221a4c; }
.module-tile-details { right: 9px; width: 25px; padding: 0; border: 1px solid rgba(255, 255, 255, 0.42); background: rgba(34, 26, 76, 0.58); color: #fff; backdrop-filter: blur(5px); }
.module-tile-details:hover { background: #fff; color: #221a4c; }
.module-tile-details svg { width: 13px; height: 13px; }
.module-tile-body { position: absolute; right: 12px; bottom: 12px; left: 12px; z-index: 1; color: #fff; }
.module-tile-body h4 { margin: 0; font-size: 17px; line-height: 1.05; letter-spacing: -0.035em; }
.module-tile-body p { display: -webkit-box; margin: 7px 0 10px; overflow: hidden; color: rgba(255, 255, 255, 0.72); font-size: 11px; line-height: 1.34; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.module-tile-select { width: 100%; min-height: 32px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 0 8px; border: 0; border-radius: 5px; background: #fff; color: #221a4c; font-size: 12px; font-weight: 850; }
.module-tile-select:hover { background: #d9fab1; }
.module-tile.is-selected .module-tile-select { background: #d9fab1; }
.module-tile-select svg { width: 13px; height: 13px; }

body.config-step-1 .selection-tray, body.config-step-2 .selection-tray { opacity: 0; transform: translateY(120%); pointer-events: none; }
.selection-tray { transition: opacity 220ms ease, transform 320ms cubic-bezier(0.22, 1, 0.36, 1); }

@media (max-width: 900px) {
    .journey-screen { justify-content: flex-start; }.journey-formula-screen .config-hero { padding-top: 20px; }.journey-formula-screen .formula-step { padding-bottom: 28px; }.legal-block.journey-screen .legal-block-inner { padding-top: 42px; }.shop-catalog.journey-screen { padding-top: 28px; }
}

@media (max-width: 640px) {
    .config-shop-page { height: calc(100svh - 130px); }
    .journey-screen { padding-top: 45px; }
    .journey-progress { width: min(100% - 32px, 1240px); padding-top: 7px; padding-bottom: 6px; }
    .journey-progress button { flex: 1; gap: 6px; padding-right: 4px; font-size: 0; }
    .journey-progress button + button { padding-left: 15px; }
    .journey-progress button + button::before { left: 4px; }
    .journey-progress button span { width: 25px; height: 25px; font-size: 10px; }

    .journey-formula-screen .config-hero { padding: 12px 0 4px; }
    .journey-formula-screen .config-hero .eyebrow,
    .journey-formula-screen .config-hero-copy > p { display: none; }
    .journey-formula-screen .config-hero h1 { max-width: 330px; font-size: clamp(22px, 6.5vw, 28px); line-height: 1.05; }
    .journey-formula-screen .formula-step { padding: 10px 0 20px; }
    .journey-formula-screen .step-heading { grid-template-columns: 1fr; gap: 2px; }
    .journey-formula-screen .step-number,
    .journey-formula-screen .step-heading .section-label { display: none; }
    .journey-formula-screen .step-heading h2 { font-size: 20px; }
    .journey-formula-screen .volume-picker { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
    .journey-formula-screen .volume-option { min-height: 118px; padding: 15px 9px 9px; }
    .journey-formula-screen .volume-check { top: 8px; right: 8px; width: 18px; height: 18px; }
    .journey-formula-screen .volume-check svg { width: 10px; height: 10px; }
    .journey-formula-screen .volume-badge { left: 9px; min-height: 16px; padding: 0 4px; font-size: 6px; }
    .journey-formula-screen .volume-heading { align-items: flex-start; flex-direction: column; gap: 0; }
    .journey-formula-screen .volume-heading strong { font-size: clamp(24px, 8vw, 30px); }
    .journey-formula-screen .volume-heading small { font-size: 8px; line-height: 1.1; }
    .journey-formula-screen .volume-detail { margin-top: 7px; font-size: 8px; line-height: 1.25; }
    .journey-formula-screen .volume-price { gap: 3px; padding-top: 7px; }
    .journey-formula-screen .volume-price strong { font-size: 17px; }
    .journey-formula-screen .volume-price small { font-size: 7px; }
    .journey-formula-screen .formula-help { margin-top: 8px; font-size: 10px; }
    .journey-actions-formula, .journey-actions-legal { justify-content: stretch; }
    .journey-actions-formula { margin-top: 10px; }
    .journey-primary, .journey-light { width: 100%; }
    .legal-block.journey-screen { padding-top: 45px; }
    .legal-block.journey-screen .legal-block-inner { padding-top: 30px; }
    .journey-legal-copy { font-size: 13px; }
    .legal-block.journey-screen .legal-lessons { margin-top: 5px; }
    .journey-actions-legal { margin-top: 18px; padding-bottom: 28px; }
    .journey-secondary { min-width: 92px; }
    .shop-catalog.journey-screen { padding: 55px 0 142px; overflow: hidden; }
    .shop-catalog.journey-screen .config-shell { display: flex; height: 100%; flex-direction: column; }
    .shop-catalog.journey-screen .catalog-topline { display: flex; align-items: flex-end; gap: 10px; }
    .shop-catalog.journey-screen .catalog-topline > div:first-child { flex: 1; }
    .shop-catalog.journey-screen .catalog-topline .step-number,
    .shop-catalog.journey-screen .catalog-topline .section-label,
    .shop-catalog.journey-screen .catalog-plan-reminder > span { display: none; }
    .shop-catalog.journey-screen .catalog-topline h2 { font-size: 24px; }
    .shop-catalog.journey-screen .catalog-plan-reminder { width: auto; min-width: 0; padding: 8px 9px; white-space: nowrap; }
    .shop-catalog.journey-screen .catalog-plan-reminder strong { margin: 0; font-size: 10px; }
    .shop-catalog.journey-screen .catalog-plan-reminder button { margin: 3px 0 0; font-size: 9px; }
    .shop-catalog.journey-screen .catalog-toolbar { width: 100%; min-width: 0; display: block; margin: 12px 0 10px; padding: 9px 0; }
    .shop-catalog.journey-screen .filters-pills { width: 100%; min-width: 0; flex-wrap: nowrap; gap: 6px; overflow-x: auto; padding-bottom: 3px; scrollbar-width: none; }
    .shop-catalog.journey-screen .filters-pills::-webkit-scrollbar { display: none; }
    .shop-catalog.journey-screen .filter-pill { flex: 0 0 auto; min-height: 29px; padding: 0 10px; font-size: 10px; }
    .shop-catalog.journey-screen .catalog-toolbar p { margin-top: 7px; font-size: 10px; text-align: left; }
    .shop-catalog.journey-screen .module-shelves { width: 100%; min-height: 0; flex: 1; gap: 19px; margin-top: 8px; padding: 0 0 8px; overflow-y: auto; overscroll-behavior: contain; }
    .shop-catalog.journey-screen .module-shelf-head { margin-bottom: 8px; }
    .shop-catalog.journey-screen .module-shelf-head h3 { font-size: 14px; }
    .shop-catalog.journey-screen .module-shelf-track { gap: 10px; padding: 2px 16px 8px; scrollbar-width: none; }
    .shop-catalog.journey-screen .module-shelf-track::-webkit-scrollbar { display: none; }
    .shop-catalog.journey-screen .module-tile { flex-basis: 172px; }
    .shop-catalog.journey-screen .module-tile-body { right: 10px; bottom: 10px; left: 10px; }
    .shop-catalog.journey-screen .module-tile-body h4 { font-size: 15px; }
    .shop-catalog.journey-screen .module-tile-body p { display: none; }
    .shop-catalog.journey-screen .module-tile-select { margin-top: 8px; min-height: 30px; font-size: 11px; }
}

/* Direct configurator: volume and modules live on one continuous page. */
.config-shop-page {
    height: auto !important;
    min-height: 100vh;
    padding: 0 0 174px !important;
    overflow: visible;
}

.config-direct-hero {
    padding: 52px 0 38px;
    background:
        radial-gradient(circle at 50% 0%, rgba(104, 92, 241, 0.14), transparent 38%),
        linear-gradient(180deg, #ffffff 0%, #f6f5ff 100%);
}

.config-direct-hero .config-shell {
    display: grid;
    justify-items: center;
    text-align: center;
}

.config-direct-hero .config-hero-copy {
    max-width: 700px;
}

.config-direct-hero h1 {
    max-width: 680px;
    margin: 0;
    color: #221a4c;
    font-size: clamp(34px, 4.2vw, 54px);
    font-weight: 680;
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.config-direct-hero .config-hero-copy > p {
    margin-top: 14px;
}

.direct-volume-section {
    scroll-margin-top: 86px;
    padding: 34px 0 42px;
    background: #ffffff;
}

.direct-volume-section .config-shell {
    display: grid;
    justify-items: center;
}

.direct-volume-section h2 {
    max-width: 600px;
    margin: 0;
    color: #221a4c;
    font-size: clamp(23px, 2.6vw, 32px);
    font-weight: 680;
    line-height: 1.08;
    letter-spacing: -0.04em;
    text-align: center;
}

.direct-volume-section .volume-picker {
    width: min(100%, 620px);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    margin-top: 22px;
    padding: 5px;
    border: 1px solid rgba(34, 26, 76, 0.12);
    border-radius: 8px;
    background: #f0eff5;
}

.direct-volume-section .volume-option {
    min-height: 72px;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 10px 8px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #5d5870;
    text-align: center;
    box-shadow: none;
}

.direct-volume-section .volume-option:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.76);
}

.direct-volume-section .volume-option.is-selected,
.direct-volume-section .volume-option.is-selected:hover {
background: #221a4c;
color: #ffffff;
box-shadow: 0 8px 17px rgba(34, 26, 76, 0.19);
}

.volume-option-plan,
.volume-option-price {
display: block;
}

.volume-option-plan {
font-size: 21px;
font-weight: 850;
letter-spacing: 0;
}

.volume-option-price {
font-size: 10px;
font-weight: 760;
opacity: 0.72;
}

.direct-volume-section .formula-help {
justify-content: center;
margin-top: 16px;
}

.config-catalog-direct {
scroll-margin-top: 0;
padding-top: 54px;
}

.config-catalog-direct .catalog-topline {
display: block;
}

.config-catalog-direct .catalog-topline > div:first-child {
padding-left: 0;
}

.config-catalog-direct .catalog-toolbar {
margin: 24px 0 20px;
}

@media (max-width: 760px) {
.config-shop-page {
padding-bottom: 130px;
}

.config-direct-hero {
padding: 28px 0 0;
}

.config-direct-hero .config-hero-copy {
margin-bottom: 20px;
}

.config-direct-hero h1 {
font-size: 34px;
}

.config-direct-hero .config-hero-copy > p {
font-size: 13px;
}

.direct-volume-section {
padding: 26px 0 30px;
}

.direct-volume-section h2 {
font-size: 23px;
}

.direct-volume-section .volume-picker {
margin-top: 17px;
}

.config-catalog-direct {
padding-top: 36px;
}
}

@media (max-width: 420px) {
.direct-volume-section .volume-picker {
gap: 3px;
padding: 4px;
}

.direct-volume-section .volume-option {
min-height: 65px;
padding: 8px 3px;
}

.volume-option-plan {
font-size: 18px;
}

.volume-option-price {
font-size: 9px;
}
}

/* Compact direct configurator: keep 7 h modules visible sooner. */
.config-shop-page {
height: auto !important;
min-height: 100vh !important;
padding-bottom: 140px !important;
overflow: visible !important;
}

.config-direct-hero {
padding: 28px 0 16px !important;
background:
radial-gradient(circle at 50% 0%, rgba(104, 92, 241, 0.12), transparent 34%),
linear-gradient(180deg, #ffffff 0%, #f7f7f5 100%) !important;
}

.config-direct-hero .config-shell {
display: grid !important;
justify-items: center !important;
text-align: center !important;
}

.config-direct-hero .config-hero-copy {
max-width: 660px !important;
margin-bottom: 0 !important;
}

.config-direct-hero .eyebrow {
margin-bottom: 8px !important;
}

.config-direct-hero h1 {
max-width: 620px !important;
font-size: clamp(30px, 3.5vw, 44px) !important;
line-height: 1.04 !important;
letter-spacing: 0 !important;
}

.config-direct-hero .config-hero-copy > p {
max-width: 570px !important;
margin: 10px auto 0 !important;
font-size: 14px !important;
line-height: 1.45 !important;
}

.direct-volume-section {
padding: 14px 0 16px !important;
scroll-margin-top: 76px !important;
}

.direct-volume-section .volume-picker {
width: min(100%, 600px) !important;
grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
margin-top: 0 !important;
}

.direct-volume-section .volume-option {
min-height: 62px !important;
padding: 8px 6px !important;
}

.volume-option-plan {
font-size: 20px !important;
letter-spacing: 0 !important;
}

.config-catalog-direct {
padding-top: 22px !important;
}

.config-catalog-direct .catalog-toolbar {
margin: 16px 0 18px !important;
}

@media (max-width: 760px) {
.config-direct-hero {
padding: 18px 0 10px !important;
}

.config-direct-hero h1 {
font-size: 30px !important;
}

.config-direct-hero .config-hero-copy > p {
font-size: 13px !important;
line-height: 1.4 !important;
}

.direct-volume-section {
padding: 10px 0 12px !important;
}

.config-catalog-direct {
padding-top: 18px !important;
}
}

@media (max-width: 420px) {
.config-direct-hero h1 {
font-size: 27px !important;
}

.config-direct-hero .config-hero-copy > p {
font-size: 12px !important;
}

.direct-volume-section .volume-option {
min-height: 64px !important;
padding: 7px 3px !important;
}

.volume-option-plan {
font-size: 15px !important;
}

.volume-option-price {
font-size: 8px !important;
}
}
